コード例 #1
0
 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")
コード例 #2
0
ファイル: tests.py プロジェクト: BridgesLab/Lab-Website
 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")