def test_assembly_unicode(self): '''This tests that the unicode representation of an :class:`~experiments.models.ReferenceGenomeAssembly` is set as its description.''' test_assembly = ReferenceGenomeAssembly(source="Ensembl", version="37.1", species="mouse") test_assembly.save() self.assertEqual(test_assembly.__unicode__(), "Ensembl (37.1)")
def test_assembly_minimal(self): '''This test that a :class:`~experiments.models.ReferenceGenomeAssembly` can be created.''' test_assembly = ReferenceGenomeAssembly(source="Ensembl", version="37.1", species="mouse") test_assembly.save() self.assertEqual(test_assembly.pk, 1) #presumes no genes loaded in fixture data
def test_assembly_unicode(self): '''This tests that the unicode representation of an :class:`~experiments.models.ReferenceGenomeAssembly` is set as its description.''' test_assembly = ReferenceGenomeAssembly(source = "Ensembl", version="37.1", species="mouse") test_assembly.save() self.assertEqual(test_assembly.__unicode__(), "Ensembl (37.1)")
def test_assembly_minimal(self): '''This test that a :class:`~experiments.models.ReferenceGenomeAssembly` can be created.''' test_assembly = ReferenceGenomeAssembly(source = "Ensembl", version="37.1", species="mouse") test_assembly.save() self.assertEqual(test_assembly.pk, 1) #presumes no genes loaded in fixture data