Can you write a test that checks that case with `assert_raises`?