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