class UniverseTest(unittest.TestCase):
    def setUp(self):
        self.universe = EliteUniverse()
        
    def test_find_route_options(self):
        o = self.universe.findRouteOptions('Aerial',5)
        self.assertIsNotNone(o)
        
        print(o)
示例#2
0
class MainTest(unittest.TestCase):
    def setUp(self):
        self.universe  = EliteUniverse()
        self.distances = DistanceMatrix()
    
    def test_distance_matrix(self):
        self.assertIsNotNone(self.distances)

    def test_locate_system(self):
        s = self.universe.findSystem('Arouca')
        self.assertIsNotNone(s)
        self.assertEqual(s.name, 'Arouca')
 def setUp(self):
     self.universe = EliteUniverse()
示例#4
0
 def setUp(self):
     self.universe  = EliteUniverse()
     self.distances = DistanceMatrix()