Use assert_raises here:

from nose.tools import assert_raises