def test_finds_longest_route(self): router = Router(self.routes) self.assertEqual(router.longest_route()[1], 982)
def test_finds_shortest_route(self): router = Router(self.routes) self.assertEqual(router.shortest_route()[1], 605)