

def test_state(self):
    'Test verifying state (IntegerField with choices)'
    data = dict(self.default)
    data['state'] = 0
    assert (len(verify_video_data(self)) == 1)
    data['state'] = 1
    assert (len(verify_video_data(data)) == 0)
    data['state'] = 2
    assert (len(verify_video_data(data)) == 0)
    data['state'] = 3
    assert (len(verify_video_data(data)) == 1)

dataset/ETHPy150Open pyvideo/steve/tests/test_utils.py TestVerifyVideoData.test_state/VarMisuse@34/55 `data`->`self`