Agent penalties

use unittest.TestCase.assertRaises instead