<s> from nose . tools import assert_raises <EOL> from synapseclient . evaluation import Evaluation , Submission <EOL> def test_Evaluation ( ) : <EOL> """<STR_LIT>""" <EOL> assert_raises ( ValueError , Evaluation , name = '<STR_LIT:foo>' , description = '<STR_LIT:bar>' , status = '<STR_LIT>' ) <EOL> assert_raises ( ValueError , Evaluation , name = '<STR_LIT:foo>' , description = '<STR_LIT:bar>' , status = '<STR_LIT>' , contentSource = '<STR_LIT:a>' ) <EOL> ev = Evaluation ( name = '<STR_LIT>' , description = '<STR_LIT:bar>' , status = '<STR_LIT>' , contentSource = '<STR_LIT>' ) <EOL> assert ( ev [ '<STR_LIT:name>' ] == ev . name ) <EOL> assert ( ev [ '<STR_LIT:description>' ] == ev . description ) <EOL> assert ( ev [ '<STR_LIT:status>' ] == ev . status ) <EOL> def test_Submission ( ) : <EOL> """<STR_LIT>""" <EOL> assert_raises ( KeyError , Submission , foo = '<STR_LIT:bar>' ) </s>
