PEATSA/Core/Tests/UnitTests/TestMutants.py
def testAddSinglePointMutant(self):
	
		'''Test that we can add a mutant and write the resulting file.
		
		We add a SPM to an list of SPM's. The next test tests more complex possibilities.'''
				
		set = Data.MutationSet()
		set.addMutation(chain="B", residueIndex=120, mutation='CYS')
		self.list.addMutant(set)
		
		#Check the mutant is added
		self.assertEqual(self.list.mutants.count(set), 1)
		
		#Create a new list from the simple format file
		newList = Data.MutationListFile("SimpleMutationList")
		
		self.assertEqual(newList, self.list)
Test that we can add a mutant and write the resulting file.
		
		We add a SPM to an list of SPM's. The next test tests more complex possibilities.
Test that we can add a mutant and write the resulting file.
We add a SPM to an list of SPM's. The next test tests more complex possibilities.
Test that we can add a mutant and write the resulting file . We add a SPM to an list of SPM ' s . The next test tests more complex possibilities .
def testAddSinglePointMutant(self):
		set = Data.MutationSet()
		set.addMutation(chain="B", residueIndex=120, mutation='CYS')
		self.list.addMutant(set)
		self.assertEqual(self.list.mutants.count(set), 1)
		newList = Data.MutationListFile("SimpleMutationList")
		self.assertEqual(newList, self.list)
def testAddSinglePointMutant ( self ) : set = Data . MutationSet ( ) set . addMutation ( chain = "B" , residueIndex = 120 , mutation = 'CYS' ) self . list . addMutant ( set ) self . assertEqual ( self . list . mutants . count ( set ) , 1 ) newList = Data . MutationListFile ( "SimpleMutationList" ) self . assertEqual ( newList , self . list )
Test that we can add a mutant and write the resulting file.
Test that we can add a mutant and write the resulting file .
'''Test that we can add a mutant and write the resulting file.
		
		We add a SPM to an list of SPM's. The next test tests more complex possibilities.''' #Check the mutant is added #Create a new list from the simple format file
self