@@ -0,0 +1,1498 @@
+from django.test import TestCase%0A%0Afrom apps.data.factories import EntryFactory%0Afrom .. import models%0A%0A%0Aclass SpeciesTestCase(TestCase):%0A%0A    def test_can_create_species(self):%0A%0A        name = 'Saccharomyces cerevisiae'%0A        reference = EntryFactory()%0A        description = 'lorem ipsum'%0A%0A        qs = models.Species.objects.all()%0A        self.assertEqual(qs.count(), 0)%0A%0A        species = models.Species.objects.create(%0A            name=name,%0A            reference=reference,%0A            description=description,%0A        )%0A%0A        self.assertEqual(species.name, name)%0A        self.assertEqual(species.reference.id, reference.id)%0A        self.assertEqual(species.description, description)%0A        self.assertEqual(qs.count(), 1)%0A%0A    def test_can_create_species_without_description(self):%0A%0A        name = 'Saccharomyces cerevisiae'%0A        reference = EntryFactory()%0A%0A        qs = models.Species.objects.all()%0A        self.assertEqual(qs.count(), 0)%0A%0A        species = models.Species.objects.create(%0A            name=name,%0A            reference=reference,%0A        )%0A%0A        self.assertEqual(species.name, name)%0A        self.assertEqual(species.reference.id, reference.id)%0A        self.assertEqual(qs.count(), 1)%0A%0A    def test_model_representation(self):%0A%0A        name = 'Saccharomyces cerevisiae'%0A        reference = EntryFactory()%0A%0A        species = models.Species.objects.create(%0A            name=name,%0A            reference=reference,%0A        )%0A%0A        self.assertEqual(str(species), name)%0A

Add unit tests for the Species model