def test_split_city(self): conv = TypeConvertor() str= u"北京" print str.strip().split(',') print conv.city_id.get(str) ids = conv.map_cities(str) print ids
def test_college_id(self): conv = TypeConvertor() print conv.map_college(u"清华大学") self.assertEqual(1,conv.map_college(u"北京大学"))