예제 #1
0
    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)")
예제 #2
0
    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
예제 #3
0
 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)")               
예제 #4
0
 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