Please use `assertIsInstance` for type checks like this.