def test_state(self):
        # Note: This is dependent on video_reqs.json data.

        data = dict(self.default)

        data['state'] = 0
        assert len(verify_video_data(data)) == 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
Test verifying state (IntegerField with choices)
dataset/ETHPy150Open pyvideo/steve/tests/test_utils.py/TestVerifyVideoData.test_state