コード例 #1
0
 def test_duration_fail(self):
     response = {'duration': 'PT14M15S'}
     self.assertFalse(Validate.duration(response))
コード例 #2
0
 def test_duration_pass(self):
     response = {'duration': 'PT04M15S'}
     self.assertTrue(Validate.duration(response))