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