def test_version_mismatch(self): with pytest.raises(ImportError): _verify_package_version("nottherightversion")