Example #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")
Example #2
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")    
Example #3
0
 def test_create_license_minimal(self):
     """This is a test for creating a new :class:`~experimentdb.models.License` object, with only the minimum fields being entered"""
     test_license = License(name="test license")
     test_license.save()
     self.assertEquals(test_license.__unicode__(), "test license")
Example #4
0
 def test_create_license_minimal(self):
     """This is a test for creating a new :class:`~experimentdb.models.License` object, with only the minimum fields being entered"""
     test_license = License(name = "test license")
     test_license.save()
     self.assertEquals(test_license.__unicode__(), "test license")