def test_category(self):
        """Test category variations"""
        # 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
dataset/ETHPy150Open pyvideo/steve/tests/test_utils.py/TestVerifyVideoData.test_category/original