wrong usage of assertRaises