Also, is there a specific message that comes with the AttributeError?  It's not a very specific error type, so restoring use of assertRaisesRegexp would provide better test confirmation.