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