예제 #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)