Beispiel #1
0
 def test_create_species_all_fields(self):
     """This is a test for creating a new species object, with only the all fields being entered"""
     test_species = Species(
         common_name = "test species", 
         taxonomy_id = "4932")
     test_species.save()
     self.assertEquals(test_species.__unicode__(), "test species")
Beispiel #2
0
 def test_species_slugify(self):
     """This is a test for the cell line name being correctly slugified"""
     test_species = Species(common_name = "test species")
     test_species.save()
     self.assertEquals(test_species.species_slug, "test-species")
Beispiel #3
0
 def test_create_species_minimal(self):
     """This is a test for creating a new species object, with only the minimum fields being entered"""
     test_species = Species(common_name = "test species")
     test_species.save()
     self.assertEquals(test_species.__unicode__(), "test species")