Пример #1
0
 def test_fail_network(self):
     #TODO: Put this into a test
     with self.assertRaises(exception.NetworkNotFound):
         nvp.get_network("https://nvp", "*")
Пример #2
0
 def test_get_network(self):
     #TODO: Put this into a test
     res = nvp.get_network("https://nvp",
                                "101661a7-b5d1-4ee6-b443-1d81dfaf4b81")
     self.assertIsNotNone(res)
Пример #3
0
 def test_except_network(self):
     #TODO: Put this into a test
     with self.assertRaises(exception.QuantumException):
         nvp.get_network("http://nvp", "*")