コード例 #1
0
 def use_mobile(self):
     return utilities.use_mobile(self.request)
コード例 #2
0
ファイル: tests.py プロジェクト: madisona/django-mobile-views
 def test_returns_false_when_not_is_mobile(self):
     self.assertEqual(False, utilities.use_mobile(mock.Mock()))
コード例 #3
0
 def use_mobile(self):
     return utilities.use_mobile(self.request)
コード例 #4
0
ファイル: tests.py プロジェクト: madisona/django-mobile-views
 def test_returns_true_when_is_mobile_and_not_user_declined_mobile(self):
     self.assertEqual(True, utilities.use_mobile(mock.Mock()))
コード例 #5
0
ファイル: tests.py プロジェクト: madisona/django-mobile-views
 def test_returns_false_when_is_mobile_and_user_declined_mobile(self):
     self.assertEqual(False, utilities.use_mobile(mock.Mock()))
コード例 #6
0
ファイル: tests.py プロジェクト: madisona/django-mobile-views
 def test_returns_false_when_is_mobile_and_user_declined_mobile(self):
     self.assertEqual(False, utilities.use_mobile(mock.Mock()))
コード例 #7
0
ファイル: tests.py プロジェクト: madisona/django-mobile-views
 def test_returns_false_when_not_is_mobile(self):
     self.assertEqual(False, utilities.use_mobile(mock.Mock()))
コード例 #8
0
ファイル: tests.py プロジェクト: madisona/django-mobile-views
 def test_returns_true_when_is_mobile_and_not_user_declined_mobile(self):
     self.assertEqual(True, utilities.use_mobile(mock.Mock()))