def test_res_state(self): print res_state_obj.match('zangilan rayon')
def is_valid(string): if not (res_city_obj.match(string) or res_state_obj.match(string) or res_country_obj.match(string)): return False return True