Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)

src/d/j/django-cachecow-HEAD/cachecow/tests/tests.py   django-cachecow(Download)
from django.test import TestCase
 
from cachecow.cache import (make_key, _format_key_arg, timedelta_to_seconds,
                            invalidate_namespace, key_arg_iterator)
from cachecow.decorators import cached_function
    def test_key_arg_formatter(self):
        s = _format_key_arg({1:2})
        self.assertTrue('1' in s)
        self.assertTrue('2' in s)
        self.assertNotEqual(s, '{1: 2}')
        s = _format_key_arg('foo bar\t')