<s> from nose . tools import eq_ <EOL> from olympia . amo . tests import TestCase <EOL> from olympia . zadmin . models import DownloadSource <EOL> class TestDownloadSource ( TestCase ) : <EOL> def test_add ( self ) : <EOL> created = DownloadSource . objects . create ( <EOL> name = '<STR_LIT>' , type = '<STR_LIT>' , <EOL> description = '<STR_LIT>' ) <EOL> d = DownloadSource . objects . filter ( id = created . id ) <EOL> eq_ ( d . count ( ) , <NUM_LIT:1> ) <EOL> eq_ ( d [ <NUM_LIT:0> ] . __unicode__ ( ) , '<STR_LIT>' ) </s>
