def test_bad_arguments(self):
     a = ActivityLog()
     a.arguments = []
     a.action = amo.LOG.ADD_USER_WITH_ROLE.id
     eq_(a.to_string(), 'Something magical happened.')
Example #2
0
 def test_bad_arguments(self):
     a = ActivityLog()
     a.arguments = []
     a.action = amo.LOG.ADD_USER_WITH_ROLE.id
     assert a.to_string() == 'Something magical happened.'
Example #3
0
 def test_bad_arguments(self):
     activity_log = ActivityLog()
     activity_log.arguments = []
     activity_log.action = amo.LOG.ADD_USER_WITH_ROLE.id
     assert activity_log.to_string() == 'Something magical happened.'