You can make this just a single assert statement.