PEATSA/Core/Tests/UnitTests/TestEnvironment.py
def testMissingProteinFiles(self):
	
		'''Tests initialisation on a working directory not containing the required protein files
		
		Should raise a WorkingDirectoryError.
		Also checks that it cleans up after itself before raising the error'''
		
		preContents = os.listdir(invalidDirectory)
		self.workingDirectory = Environment.WorkingDirectory(location=invalidDirectory) 
		self.assertRaises(Exceptions.WorkingDirectoryError, 
			self.workingDirectory.setup,
			pdbFile='Unknown.pdb',
			scan = True,
			stability = False)
		
		#Check it cleaned itself up properly - in this case it should remove anything it put there
		postContents = os.listdir(invalidDirectory)
		self.assertEqual(preContents, postContents)
Tests initialisation on a working directory not containing the required protein files
		
		Should raise a WorkingDirectoryError.
		Also checks that it cleans up after itself before raising the error
Tests initialisation on a working directory not containing the required protein files
Should raise a WorkingDirectoryError.
Also checks that it cleans up after itself before raising the error
Tests initialisation on a working directory not containing the required protein files Should raise a WorkingDirectoryError . Also checks that it cleans up after itself before raising the error
def testMissingProteinFiles(self):
		preContents = os.listdir(invalidDirectory)
		self.workingDirectory = Environment.WorkingDirectory(location=invalidDirectory) 
		self.assertRaises(Exceptions.WorkingDirectoryError, 
			self.workingDirectory.setup,
			pdbFile='Unknown.pdb',
			scan = True,
			stability = False)
		postContents = os.listdir(invalidDirectory)
		self.assertEqual(preContents, postContents)
def testMissingProteinFiles ( self ) : preContents = os . listdir ( invalidDirectory ) self . workingDirectory = Environment . WorkingDirectory ( location = invalidDirectory ) self . assertRaises ( Exceptions . WorkingDirectoryError , self . workingDirectory . setup , pdbFile = 'Unknown.pdb' , scan = True , stability = False ) postContents = os . listdir ( invalidDirectory ) self . assertEqual ( preContents , postContents )
Tests initialisation on a working directory not containing the required protein files
Should raise a WorkingDirectoryError.
Tests initialisation on a working directory not containing the required protein files Should raise a WorkingDirectoryError .
'''Tests initialisation on a working directory not containing the required protein files
		
		Should raise a WorkingDirectoryError.
		Also checks that it cleans up after itself before raising the error''' #Check it cleaned itself up properly - in this case it should remove anything it put there
self