def METHOD_NAME(self, raven):
    with tempfile.NamedTemporaryFile() as temp:
        temp.write(b"Bucephalus")
        temp.seek(0)
        with self._open_db(raven, temp.name) as db:
            assert isinstance(db, geoip.GeoIPNull)
    raven.check(["InvalidDatabaseError: Error opening database file"])