

def test_anonymous(self):
    '\n        Testing Anonymous Cookie Based Users\n        '
    request = self.get_request()
    mw = TimezonesMiddleware()
    request.COOKIES = {
        'timezone': 'Australia/Victoria',
    }
    utcnow = datetime.utcnow().replace(tzinfo=pytz.utc)
    mw.process_request(request)
    now1 = timezone.localtime(timezone.now())
    self.COOKIES = {
        'timezone': 'America/New_York',
    }
    mw.process_request(request)
    now2 = timezone.localtime(timezone.now())
    self.assertNotEqual(utcnow, now1)
    self.assertNotEqual(utcnow, now2)
    self.assertNotEqual(now1, now2)

dataset/ETHPy150Open jamesmfriedman/django-easytz/easytz/tests.py TimezoneTestCase.test_anonymous/VarMisuse@76/106 `request`->`self`