示例#1
0
class MapTest(unittest.TestCase):
    global map

    def setUp(self):
        self.map = Map()

    def testCreateURL(self):
        graph = AirGraph()
        graph.parse_file()
        url = self.map.create_URL(graph)
        correct_url = open("../../input/correct_url.txt", "r").read()
        self.assertEquals(url, correct_url)
示例#2
0
class MapTest(unittest.TestCase):
    global map
    
    def setUp(self):
        self.map = Map()
        
    def testCreateURL(self):
        graph = AirGraph()
        graph.parse_file()
        url = self.map.create_URL(graph)
        correct_url = open("../../input/correct_url.txt","r").read()
        self.assertEquals(url,correct_url)
        
示例#3
0
 def display_map(self):
     circle_map = Map()
     url = circle_map.create_URL(self.graph)
     webbrowser.open(url, new=2)
示例#4
0
文件: Stats.py 项目: mukichou/cs242-1
 def display_map(self):
     circle_map = Map()
     url = circle_map.create_URL(self.graph)
     webbrowser.open(url,new=2)