You should use a nose.tools.assert_raises here.