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)
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)
def display_map(self): circle_map = Map() url = circle_map.create_URL(self.graph) webbrowser.open(url, new=2)
def display_map(self): circle_map = Map() url = circle_map.create_URL(self.graph) webbrowser.open(url,new=2)