As above with just throwing an error instead of using assert, as assert is intended for unit tests.