PEATSA/Core/Tests/UnitTests/TestMutants.py
def testAddComplexMutant(self):	
	
		'''Test can a change of format (Single to Standard) can be detected and dealt with'''
		
		set = Data.MutationSet()
		set.addMutation(chain="B", residueIndex=120, mutation='CYS')
		set.addMutation(chain="A", residueIndex=42, mutation='ALA')
		self.list.addMutant(set)
		
		#Test the format change is detected
		self.assertEqual(self.list.isStandardMutationFormat(), True)
		
		newList = Data.MutationListFile("SimpleMutationList")
		#Test that the file has been updated to the new format
		self.assertEqual(newList.isStandardMutationFormat(), True)
		#Test that the two list are the same
		self.assertEqual(newList, self.list)
Test can a change of format (Single to Standard) can be detected and dealt with
Test can a change of format (Single to Standard) can be detected and dealt with
Test can a change of format ( Single to Standard ) can be detected and dealt with
def testAddComplexMutant(self):	
		set = Data.MutationSet()
		set.addMutation(chain="B", residueIndex=120, mutation='CYS')
		set.addMutation(chain="A", residueIndex=42, mutation='ALA')
		self.list.addMutant(set)
		self.assertEqual(self.list.isStandardMutationFormat(), True)
		newList = Data.MutationListFile("SimpleMutationList")
		self.assertEqual(newList.isStandardMutationFormat(), True)
		self.assertEqual(newList, self.list)
def testAddComplexMutant ( self ) : set = Data . MutationSet ( ) set . addMutation ( chain = "B" , residueIndex = 120 , mutation = 'CYS' ) set . addMutation ( chain = "A" , residueIndex = 42 , mutation = 'ALA' ) self . list . addMutant ( set ) self . assertEqual ( self . list . isStandardMutationFormat ( ) , True ) newList = Data . MutationListFile ( "SimpleMutationList" ) self . assertEqual ( newList . isStandardMutationFormat ( ) , True ) self . assertEqual ( newList , self . list )
Test can a change of format (Single to Standard) can be detected and dealt with
Test can a change of format ( Single to Standard ) can be detected and dealt with
'''Test can a change of format (Single to Standard) can be detected and dealt with''' #Test the format change is detected #Test that the file has been updated to the new format #Test that the two list are the same
self