Would be worth adding an assertRaises case.