Example #1
0
 def test_study_absolute_url(self):
     """This test verifies that the absolute url of a study object is set correctly.  This study is dependend on a positive result on test_create_study_minimal."""
     test_study = Study(description = "Effects of x on y")
     test_study.save()
     self.assertEquals(test_study.get_absolute_url(), '/studies/1/')