def test_call_nonmobile(self): view = decorators.not_mobilized(self.view) self.assertEqual(view(self.request), True)
def setUp(self): normal = lambda r: getattr(r, 'NO_MOBILE', False) self.view = decorators.not_mobilized(normal) self.plain_view = normal self.request = test.RequestFactory().get('/')