Beispiel #1
0
 def test_allow_inject_nmi(self, mock_request):
     mock_request.version.minor = 29
     self.assertTrue(utils.allow_inject_nmi())
     mock_request.version.minor = 28
     self.assertFalse(utils.allow_inject_nmi())
Beispiel #2
0
 def test_allow_inject_nmi(self, mock_request):
     mock_request.version.minor = 29
     self.assertTrue(utils.allow_inject_nmi())
     mock_request.version.minor = 28
     self.assertFalse(utils.allow_inject_nmi())