def TestremoveCity(self): EditRoute.removecity("Seoul") isValid = True for cityname, cityinfo in GraphLibrary.city_dictionary.iteritems(): if cityname == "Seoul": isValid = False break self.assertTrue(isValid)