def test_jd_4level_code_map(): for i in cnregion.get_top_regions(): _test_jd_4level_code_map(i)
def test_top_regions(top_region_codes): assert sorted(top_region_codes) == sorted([r.code for r in cnregion.get_top_regions()])