def test_de_software_unicode(self): '''This tests that the unicode representation of an :class:`~experiments.models.DifferentialExpressionSoftware` is set as its description.''' test_software = DifferentialExpressionSoftware(name="Test Software", version="1.0.1") test_software.save() self.assertEqual(test_software.__unicode__(), "Test Software (1.0.1)")
def test_created_new_de_software_minimal(self): '''This test that a :class:`~experiments.models.DifferentialExpressionSoftware` can be created.''' test_software = DifferentialExpressionSoftware(name="Test Software", version="1.0.1") test_software.save() self.assertEqual(test_software.pk, 1) #presumes no genes loaded in fixture data
def test_de_software_unicode(self): '''This tests that the unicode representation of an :class:`~experiments.models.DifferentialExpressionSoftware` is set as its description.''' test_software = DifferentialExpressionSoftware(name = "Test Software", version="1.0.1") test_software.save() self.assertEqual(test_software.__unicode__(), "Test Software (1.0.1)")
def test_created_new_de_software_minimal(self): '''This test that a :class:`~experiments.models.DifferentialExpressionSoftware` can be created.''' test_software = DifferentialExpressionSoftware(name = "Test Software", version="1.0.1") test_software.save() self.assertEqual(test_software.pk, 1) #presumes no genes loaded in fixture data