

def _create_project(self):
    project = models.Project()
    project.name = 'TEST_PROJECT'
    project.description = 'TEST_DESCRIPTION'
    project.save()
    project_hook = hook_models.Hook()
    project_hook.url = 'http://example.com/project/hook/'
    project_hook.project = project
    project_hook.save()
    self.project_hook = project_hook
    self.project = project

dataset/ETHPy150Open fabric-bolt/fabric-bolt/fabric_bolt/web_hooks/tests/test_urls.py TestHooksURLS._create_project/original