def test_from_str_raises_ValueError(self, start_str: str, end_str: str): with pytest.raises(ValueError): TimeProgPeriod.from_str(start_str, end_str)
def test_from_str(self, start_str: str, end_str: str): TimeProgPeriod.from_str(start_str, end_str)
def test_str(self, state: int): assert str(TimeProgEntry.from_str( str(state), "00:00", "00:00")) == "state={:d}, time={!s}".format( state, TimeProgPeriod.from_str("00:00", "00:00"))