Example #1
0
 def test_create_manipulation_minimal_knockout(self):
     """This is a test for creating a new Manipulation object, with only the minimum fields being entered.  It also tests the unicode representation.  This tests for knockout."""
     test_manipulation = Manipulation(type="Knockout",
                                      protein=Protein.objects.get(pk=1))
     test_manipulation.save()
     self.assertEquals(test_manipulation.__unicode__(),
                       "Fixture Protein Knockout")
Example #2
0
 def test_create_manipulation_minimal_treatment_chemical(self):
     """This is a test for creating a new Manipulation object, with only the minimum fields being entered.  It also tests the unicode representation.  This tests for chemcial treatment."""
     test_manipulation = Manipulation(type="Treatment",
                                      chemical=Chemical.objects.get(pk=1))
     test_manipulation.save()
     self.assertEquals(test_manipulation.__unicode__(),
                       "Test Chemical Treatment")