Exemplo n.º 1
0
    def test_align_software_unicode(self):
        '''This tests that the unicode representation of an :class:`~experiments.models.SequenceAlignmentSoftware` is set as its description.'''

        test_software = SequenceAlignmentSoftware(name="Test Software",
                                                  version="1.0.1")
        test_software.save()
        self.assertEqual(test_software.__unicode__(), "Test Software (1.0.1)")
Exemplo n.º 2
0
    def test_created_new_align_software_minimal(self):
        '''This test that a :class:`~experiments.models.SequenceAlignmentSoftware` can be created.'''

        test_software = SequenceAlignmentSoftware(name="Test Software",
                                                  version="1.0.1")
        test_software.save()
        self.assertEqual(test_software.pk,
                         1)  #presumes no genes loaded in fixture data