Exemple #1
0
 def test_allow_inspect_abort(self, mock_request):
     mock_request.version.minor = 41
     self.assertTrue(utils.allow_inspect_abort())
     mock_request.version.minor = 40
     self.assertFalse(utils.allow_inspect_abort())
Exemple #2
0
 def test_allow_inspect_abort(self, mock_request):
     mock_request.version.minor = 41
     self.assertTrue(utils.allow_inspect_abort())
     mock_request.version.minor = 40
     self.assertFalse(utils.allow_inspect_abort())