def test_funding_absolute_url(self): '''This tests the title_slug field of a :class:`~projects.models.Funding`.''' test_funding = Funding(title='Test Funding', active=True) test_funding.save() self.assertEqual(test_funding.get_absolute_url(), "/funding/test-funding")