def METHOD_NAME(self):
    key = ProjectKey(project_id=self.project.id, public_key="public", secret_key="secret")
    with self.options({"system.url-prefix": "https://example.com"}):
        self.assertEqual(key.get_dsn(), f"https://public:secret@example.com/{self.project.id}")