예제 #1
0
 def test_directory_creation(self):
     path = tempfile.mkdtemp()
     os.rmdir(path)
     path1 = "{0}/AzErTy".format(path)
     directories = TSWdirectories()
     directories._parseLine('file_path="{0}"'.format(path1))
     self.assertTrue(os.path.isdir(path1))
     os.removedirs(path1)
     self.assertFalse(os.path.isdir(path))
예제 #2
0
	def test_directory_creation(self):
		path = tempfile.mkdtemp()
		os.rmdir(path)
		path1 = "{0}/AzErTy".format(path)
		directories = TSWdirectories()
		directories._parseLine('file_path="{0}"'.format(path1))
		self.assertTrue(os.path.isdir(path1))
		os.removedirs(path1)
		self.assertFalse(os.path.isdir(path))
예제 #3
0
 def test_creation(self):
     directories = TSWdirectories(self.filename)
     self.assertIsInstance(directories, TSWdirectories)
     self.assertGreater(len(directories.keys()), 0)
예제 #4
0
	def test_creation(self):
		directories = TSWdirectories(self.filename)
		self.assertIsInstance(directories,TSWdirectories)
		self.assertGreater(len(directories.keys()),0)