Exemplo n.º 1
0
 def test_non_production_disallow_all_is_true(self):
     self.assertTrue(views.Robots().get_context_data()['disallow_all'])
Exemplo n.º 2
0
 def setUp(self):
     self.rf = RequestFactory()
     self.view = views.Robots()
Exemplo n.º 3
0
 def test_production_disallow_all_is_false(self):
     self.assertFalse(views.Robots().get_context_data()['disallow_all'])