Exemplo n.º 1
0
 def use_mobile(self):
     return utilities.use_mobile(self.request)
Exemplo n.º 2
0
 def test_returns_false_when_not_is_mobile(self):
     self.assertEqual(False, utilities.use_mobile(mock.Mock()))
Exemplo n.º 3
0
 def use_mobile(self):
     return utilities.use_mobile(self.request)
Exemplo n.º 4
0
 def test_returns_true_when_is_mobile_and_not_user_declined_mobile(self):
     self.assertEqual(True, utilities.use_mobile(mock.Mock()))
Exemplo n.º 5
0
 def test_returns_false_when_is_mobile_and_user_declined_mobile(self):
     self.assertEqual(False, utilities.use_mobile(mock.Mock()))
Exemplo n.º 6
0
 def test_returns_false_when_is_mobile_and_user_declined_mobile(self):
     self.assertEqual(False, utilities.use_mobile(mock.Mock()))
Exemplo n.º 7
0
 def test_returns_false_when_not_is_mobile(self):
     self.assertEqual(False, utilities.use_mobile(mock.Mock()))
Exemplo n.º 8
0
 def test_returns_true_when_is_mobile_and_not_user_declined_mobile(self):
     self.assertEqual(True, utilities.use_mobile(mock.Mock()))