示例#1
0
 def test_license_url(self):
     """This is a test for creating a new :class:`~experimentdb.models.License` object, and verifying that the url is set correctly."""
     test_license = License(name = "test license")
     test_license.save()
     self.assertEquals(test_license.get_absolute_url(), "/license/1")