PEATSA/Core/Tests/UnitTests/TestEnvironment.py
def testDesignPKAOptions(self):
	
		'''Test the design pka options
		
		Requires that the design pka tools are installed and in the path'''
		
		import pKa
		
		returnedOptions = self.configuration.designPKAOptions()
		realOptions = pKa.Design_pKa.get_defaults()
		
		#Check they have the same keys
		self.assertEqual(realOptions.keys(), returnedOptions.keys())
		
		#The value for each pka design default key is an list with the form [optionValue, type] 
		#Check the types are all corrected
		
		returnedTypes = [returnedOptions[key][1] for key in returnedOptions.keys()]
		realTypes = [realOptions[key][1] for key in realOptions.keys()]

		self.assertEqual(returnedTypes, realTypes)
Test the design pka options
		
		Requires that the design pka tools are installed and in the path
Test the design pka options
Requires that the design pka tools are installed and in the path
Test the design pka options Requires that the design pka tools are installed and in the path
def testDesignPKAOptions(self):
		import pKa
		returnedOptions = self.configuration.designPKAOptions()
		realOptions = pKa.Design_pKa.get_defaults()
		self.assertEqual(realOptions.keys(), returnedOptions.keys())
		returnedTypes = [returnedOptions[key][1] for key in returnedOptions.keys()]
		realTypes = [realOptions[key][1] for key in realOptions.keys()]
		self.assertEqual(returnedTypes, realTypes)
def testDesignPKAOptions ( self ) : import pKa returnedOptions = self . configuration . designPKAOptions ( ) realOptions = pKa . Design_pKa . get_defaults ( ) self . assertEqual ( realOptions . keys ( ) , returnedOptions . keys ( ) ) returnedTypes = [ returnedOptions [ key ] [ 1 ] for key in returnedOptions . keys ( ) ] realTypes = [ realOptions [ key ] [ 1 ] for key in realOptions . keys ( ) ] self . assertEqual ( returnedTypes , realTypes )
Test the design pka options
Requires that the design pka tools are installed and in the path
Test the design pka options Requires that the design pka tools are installed and in the path
'''Test the design pka options
		
		Requires that the design pka tools are installed and in the path''' #Check they have the same keys #The value for each pka design default key is an list with the form [optionValue, type]  #Check the types are all corrected
self