Should this be an `assertRaises` instead?