コード例 #1
0
 def test_various_invalid_times(self, time):
     """Ensure that invalid times throw an exception."""
     with pytest.raises(ValueError):
         helpers.parse_time(time)
コード例 #2
0
 def test_various_invalid_times(self, time):
     """Ensure that invalid times throw an exception."""
     with pytest.raises(ValueError):
         helpers.parse_time(time)
コード例 #3
0
 def test_various_times(self, time, expectation):
     """Make sure that given times are parsed as expected."""
     assert helpers.parse_time(time) == expectation
コード例 #4
0
 def test_various_times(self, time, expectation):
     """Make sure that given times are parsed as expected."""
     assert helpers.parse_time(time) == expectation