<s> from django . conf import settings <EOL> from django . core import mail <EOL> from olympia . amo . tests import TestCase <EOL> from olympia . abuse . models import AbuseReport <EOL> class TestAbuse ( TestCase ) : <EOL> fixtures = [ '<STR_LIT>' , '<STR_LIT>' ] <EOL> def test_user ( self ) : <EOL> AbuseReport ( user_id = <NUM_LIT> ) . send ( ) <EOL> assert mail . outbox [ <NUM_LIT:0> ] . subject . startswith ( '<STR_LIT>' ) <EOL> assert mail . outbox [ <NUM_LIT:0> ] . to == [ settings . ABUSE_EMAIL ] <EOL> def test_addon ( self ) : <EOL> AbuseReport ( addon_id = <NUM_LIT> ) . send ( ) <EOL> assert mail . outbox [ <NUM_LIT:0> ] . subject . startswith ( '<STR_LIT>' ) <EOL> def test_addon_fr ( self ) : <EOL> with self . activate ( locale = '<STR_LIT>' ) : <EOL> AbuseReport ( addon_id = <NUM_LIT> ) . send ( ) <EOL> assert mail . outbox [ <NUM_LIT:0> ] . subject . startswith ( '<STR_LIT>' ) </s>
