Beispiel #1
0
 def test_timestamp_invalid(self):
     """Test that timestamp raises a ValueError with invalid input."""
     with self.assertRaises(ValueError):
         OCPGenerator.timestamp(self.fake.word())
Beispiel #2
0
 def test_timestamp_valid(self):
     """Test that timestamp returns a string with a valid input."""
     self.assertIsInstance(OCPGenerator.timestamp(self.now), str)