Ejemplo n.º 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")
Ejemplo n.º 2
0
def test__month(test_input, expected):
    # Act
    first, last = cli._month(test_input)

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

    # Assert
    assert expected == (first, last)