コード例 #1
0
ファイル: tests.py プロジェクト: dejicranium/django-mobility
 def test_call_nonmobile(self):
     view = decorators.not_mobilized(self.view)
     self.assertEqual(view(self.request), True)
コード例 #2
0
ファイル: tests.py プロジェクト: oremj/django-mobility
 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
ファイル: tests.py プロジェクト: baudtack/django-mobility
 def test_call_nonmobile(self):
     view = decorators.not_mobilized(self.view)
     self.assertEqual(view(self.request), True)