def test_batch_duration_format(self): obj = _validators.duration_format("P3Y6M4DT12H30M5S") self.assertIsInstance(obj, isodate.Duration) with self.assertRaises(ValueError): _validators.duration_format("test")
def test_batch_duration_format(self): obj = _validators.duration_format("P3Y6M4DT12H30M5S") self.assertIsInstance(obj, isodate.Duration) with self.assertRaises(ValueError): _validators.duration_format("test")