Example #1
0
 def test_validate_fail_duration(self):
     response = {'snippet': {'channelTitle': 'paramount picture', 'title': 'Trailer'}, 'duration': 'PT14M15S'}
     self.assertFalse(Validate.validate(response))
Example #2
0
 def test_validate_fail_region(self):
     response = {'snippet': {'channelTitle': 'paramount picture', 'title': 'Trailer'}, 'duration': 'PT14M15S',
                 'regionRestriction': {'blocked': ['GB']}}
     self.assertFalse(Validate.validate(response))
Example #3
0
 def test_validate_fail_channel(self):
     response = {'snippet': {'channelTitle': '7even3hreetv', 'title': 'Trailer'}, 'duration': 'PT04M15S'}
     self.assertFalse(Validate.validate(response))