def METHOD_NAME(self):
    key = self.model.objects.create(
        project_id=self.project.id, public_key="abc", secret_key="xyz"
    )
    assert self.model.from_dsn(f"http://abc@testserver/{self.project.id}") == key
    assert self.model.from_dsn(f"http://abc@o1.ingest.testserver/{self.project.id}") == key
    with pytest.raises(self.model.DoesNotExist):
        self.model.from_dsn("http://xxx@testserver/1")
    with pytest.raises(self.model.DoesNotExist):
        self.model.from_dsn("abc")