PEATSA/Core/Tests/UnitTests/TestEnvironment.py
def testClean(self):
	
		'''Tests that clean works
		
		Does this by checking the directory is in the same state afterwards as before
		Note this check only works does not setup a scan since this may copy the design files
		and these will not be removed by clean (as they could have been present already) 
		They are only removed if there was an error during the setup stage.'''
		
		contents = os.listdir(validDirectory)
		
		self.workingDirectory = Environment.WorkingDirectory(location=validDirectory)
		self.workingDirectory.setup(pdbFile=testPDB, 
					scan=False,
					stability=True)
		self.workingDirectory.clean()
		
		#Check the directory contents are the same as when started				
		newContents = os.listdir(validDirectory)
		
		self.assertEqual(contents, newContents)
Tests that clean works
		
		Does this by checking the directory is in the same state afterwards as before
		Note this check only works does not setup a scan since this may copy the design files
		and these will not be removed by clean (as they could have been present already) 
		They are only removed if there was an error during the setup stage.
Tests that clean works
Does this by checking the directory is in the same state afterwards as before
Note this check only works does not setup a scan since this may copy the design files
and these will not be removed by clean (as they could have been present already)
They are only removed if there was an error during the setup stage.
Tests that clean works Does this by checking the directory is in the same state afterwards as before Note this check only works does not setup a scan since this may copy the design files and these will not be removed by clean ( as they could have been present already ) They are only removed if there was an error during the setup stage .
def testClean(self):
		contents = os.listdir(validDirectory)
		self.workingDirectory = Environment.WorkingDirectory(location=validDirectory)
		self.workingDirectory.setup(pdbFile=testPDB, 
					scan=False,
					stability=True)
		self.workingDirectory.clean()
		newContents = os.listdir(validDirectory)
		self.assertEqual(contents, newContents)
def testClean ( self ) : contents = os . listdir ( validDirectory ) self . workingDirectory = Environment . WorkingDirectory ( location = validDirectory ) self . workingDirectory . setup ( pdbFile = testPDB , scan = False , stability = True ) self . workingDirectory . clean ( ) newContents = os . listdir ( validDirectory ) self . assertEqual ( contents , newContents )
Tests that clean works
Does this by checking the directory is in the same state afterwards as before
Note this check only works does not setup a scan since this may copy the design files
and these will not be removed by clean (as they could have been present already)
They are only removed if there was an error during the setup stage.
Tests that clean works Does this by checking the directory is in the same state afterwards as before Note this check only works does not setup a scan since this may copy the design files and these will not be removed by clean ( as they could have been present already ) They are only removed if there was an error during the setup stage .
'''Tests that clean works
		
		Does this by checking the directory is in the same state afterwards as before
		Note this check only works does not setup a scan since this may copy the design files
		and these will not be removed by clean (as they could have been present already) 
		They are only removed if there was an error during the setup stage.''' #Check the directory contents are the same as when started				
self