def test__last_month(test_input, expected): # Act with freeze_time(test_input): first, last = cli._last_month() # Assert assert expected == (first, last)
def test__last_month(test_input: str, expected: str) -> None: # Act with freeze_time(test_input): first, last = cli._last_month() # Assert assert expected == (first, last)
def test__last_month(self): # Arrange # Act first, last = cli._last_month() # Assert self.assertEqual(first, "2018-08-01") self.assertEqual(last, "2018-08-31")