示例#1
0
 def test_allow_network_interface(self, mock_request):
     mock_request.version.minor = 20
     self.assertTrue(utils.allow_network_interface())
     mock_request.version.minor = 19
     self.assertFalse(utils.allow_network_interface())
示例#2
0
 def test_allow_network_interface(self, mock_request):
     mock_request.version.minor = 20
     self.assertTrue(utils.allow_network_interface())
     mock_request.version.minor = 19
     self.assertFalse(utils.allow_network_interface())