def test_category(self):
        # category is none, no data['category']
        data = dict(self.default)
        del data['category']
        assert len(verify_video_data(data, None)) == 1

        # category is something, no data['category']
        assert len(verify_video_data(data, 'Test Category')) == 0

        # category is none, data['category'] = something
        data = dict(self.default)
        assert len(verify_video_data(data, None)) == 0

        # category is something, data['category'] = same something
        assert len(verify_video_data(data, data['category'])) == 0

        # category is something, data['category'] = different something
        assert len(verify_video_data(data, data['category'] + 'abc')) == 1
Test category variations
dataset/ETHPy150Open pyvideo/steve/tests/test_utils.py/TestVerifyVideoData.test_category