<s> from models . cards . video_card import VideoCard <EOL> import pytest <EOL> xfail = pytest . mark . xfail <EOL> def test_site ( db_conn , cards_table ) : <EOL> """<STR_LIT>""" <EOL> card , errors = VideoCard . insert ( db_conn , { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> } ) <EOL> assert len ( errors ) == <NUM_LIT:1> <EOL> card [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> errors = card . validate ( db_conn ) <EOL> assert len ( errors ) == <NUM_LIT:0> <EOL> def test_video_id ( db_conn , cards_table ) : <EOL> """<STR_LIT>""" <EOL> card , errors = VideoCard . insert ( db_conn , { <EOL> '<STR_LIT>' : '<STR_LIT>' , <EOL> '<STR_LIT:name>' : '<STR_LIT>' , <EOL> '<STR_LIT>' : '<STR_LIT>' <EOL> } ) <EOL> assert len ( errors ) == <NUM_LIT:1> <EOL> card [ '<STR_LIT>' ] = '<STR_LIT>' <EOL> errors = card . validate ( db_conn ) <EOL> assert len ( errors ) == <NUM_LIT:0> <EOL> @ xfail <EOL> def test_validate_response ( db_conn , cards_table ) : <EOL> """<STR_LIT>""" <EOL> assert False </s>
