Пример #1
0
 def test_call_nonmobile(self):
     view = decorators.not_mobilized(self.view)
     self.assertEqual(view(self.request), True)
Пример #2
0
 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('/')
Пример #3
0
 def test_call_nonmobile(self):
     view = decorators.not_mobilized(self.view)
     self.assertEqual(view(self.request), True)