示例#1
0
    def test__month_12(self):
        # Arrange
        yyyy_mm = "2018-12"

        # Act
        first, last = cli._month(yyyy_mm)

        # Assert
        self.assertEqual(first, "2018-12-01")
        self.assertEqual(last, "2018-12-31")
示例#2
0
def test__month(test_input, expected):
    # Act
    first, last = cli._month(test_input)

    # Assert
    assert expected == (first, last)
示例#3
0
def test__month(test_input: str, expected: str) -> None:
    # Act
    first, last = cli._month(test_input)

    # Assert
    assert expected == (first, last)