<s> from tests . test_helper import * <EOL> class TestCreditCardVerification ( unittest . TestCase ) : <EOL> def test_create_raises_exception_with_bad_keys ( self ) : <EOL> try : <EOL> CreditCardVerification . create ( { "<STR_LIT>" : "<STR_LIT:value>" , "<STR_LIT>" : { "<STR_LIT>" : "<STR_LIT:value>" } } ) <EOL> self . assertTrue ( False ) <EOL> except KeyError as e : <EOL> self . assertEquals ( "<STR_LIT>" , str ( e ) ) <EOL> def test_when_risk_data_is_not_included ( self ) : <EOL> verification = CreditCardVerification ( None , { } ) <EOL> self . assertEquals ( verification . risk_data , None ) <EOL> def test_finding_empty_id_raises_not_found_exception ( self ) : <EOL> try : <EOL> CreditCardVerification . find ( "<STR_LIT:U+0020>" ) <EOL> self . assertTrue ( False ) <EOL> except NotFoundError as e : <EOL> self . assertTrue ( True ) <EOL> def test_finding_none_raises_not_found_exception ( self ) : <EOL> try : <EOL> CreditCardVerification . find ( None ) <EOL> self . assertTrue ( False ) <EOL> except NotFoundError as e : <EOL> self . assertTrue ( True ) </s>
