예제 #1
0
 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)
예제 #2
0
 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)
예제 #3
0
 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)
예제 #4
0
 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)