def test_future_year(self): """準正常系: invalid input""" urls = ksj.get_url(identifier="L01", pref_code='11-14', fiscal_year=2030) actual = urls expected = None self.assertEqual(expected, actual)
def test_multi_year_with_space(self): """準正常系: invalid input""" urls = ksj.get_url(identifier="L01", pref_code='11, 12', fiscal_year='2018, 2019') actual = urls expected = None self.assertEqual(expected, actual)
def test_mesh_code(self): """正常系""" urls = ksj.get_url(identifier="A30a5", mesh_code=5340, fiscal_year=2011) expected = (1, 9) actual = urls.shape self.assertEqual(expected, actual)
def test_multi_year(self): """正常系""" urls = ksj.get_url(identifier="L01", pref_code='11,12', fiscal_year='2018,2019') actual = urls.shape expected = (4, 9) self.assertEqual(expected, actual)