Пример #1
0
 def test_make_dates_query_quarterly_specific_dates(self):
     test = url.ibge_make_dates_query(start="2018",
                                      end="2018",
                                      freq="trimestral")
     expected = "/periodos/201801-201804"
     self.assertEqual(test, expected)
Пример #2
0
 def test_make_dates_query_monthly(self):
     test = url.ibge_make_dates_query()
     expected = "/periodos/190001-201912"
     self.assertEqual(test, expected)
Пример #3
0
 def test_make_dates_query_quarterly(self):
     test = url.ibge_make_dates_query(freq="trimestral")
     expected = "/periodos/190001-201904"
     self.assertEqual(test, expected)
Пример #4
0
 def test_make_dates_query_yearly(self):
     test = url.ibge_make_dates_query(start="06-2018",
                                      end="02-2019",
                                      freq="anual")
     expected = "/periodos/2018-2019"
     self.assertEqual(test, expected)
Пример #5
0
 def test_make_dates_query_last_n(self):
     test = url.ibge_make_dates_query(last_n=4, freq="mensal")
     expected = "/periodos/-4"
     self.assertEqual(test, expected)
Пример #6
0
 def test_make_dates_query_end(self):
     test = url.ibge_make_dates_query(end="02-2019", freq="mensal")
     expected = "/periodos/190001-201902"
     self.assertEqual(test, expected)
Пример #7
0
 def test_make_dates_query_start(self):
     test = url.ibge_make_dates_query(start="02-2019", freq="mensal")
     expected = "/periodos/201902-201912"
     self.assertEqual(test, expected)
Пример #8
0
 def test_make_dates_query_start_end(self):
     test = url.ibge_make_dates_query(start="02-2019", end="03-2019")
     expected = "/periodos/201902-201903"
     self.assertEqual(test, expected)