

def test_category(self):
    'Test category variations'
    data = dict(self.default)
    del data['category']
    assert (len(verify_video_data(data, None)) == 1)
    assert (len(verify_video_data(data, 'Test Category')) == 0)
    data = dict(self.default)
    assert (len(verify_video_data(data, None)) == 0)
    assert (len(verify_video_data(data, data['category'])) == 0)
    assert (len(verify_video_data(data, (data['category'] + 'abc'))) == 1)

dataset/ETHPy150Open pyvideo/steve/tests/test_utils.py TestVerifyVideoData.test_category/original