

def test_hook_reverse_with_project(self):
    h = hook_models.Hook()
    h.url = 'http://www.example.com'
    h.project = self.project
    self.assertEqual(reverse('projects_project_view', args=(self.project.pk,)), h.get_absolute_url())

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