def test_created_new_manipulation_minimal(self): '''This test that a :class:`~experiments.models.Manipulation` can be created.''' test_manipulation = Manipulation(description="Test Manipulation") test_manipulation.save() self.assertEqual(test_manipulation.pk, 1) #presumes no genes loaded in fixture data
def test_manipulation_unicode(self): '''This tests that the unicode representation of an :class:`~experiments.models.Manipulation` is set as its description.''' test_manipulation = Manipulation(description = "Test Manipulation") test_manipulation.save() self.assertEqual(test_manipulation.__unicode__(), "Test Manipulation")
def test_created_new_manipulation_minimal(self): '''This test that a :class:`~experiments.models.Manipulation` can be created.''' test_manipulation = Manipulation(description = "Test Manipulation") test_manipulation.save() self.assertEqual(test_manipulation.pk, 1) #presumes no genes loaded in fixture data
def test_manipulation_unicode(self): '''This tests that the unicode representation of an :class:`~experiments.models.Manipulation` is set as its description.''' test_manipulation = Manipulation(description="Test Manipulation") test_manipulation.save() self.assertEqual(test_manipulation.__unicode__(), "Test Manipulation")