Exemple #1
0
	def testFinalSlash01(self):
		testPath = "C:\\Test"
		actual = elffiles.ensureFinalSlash(testPath)
		self.assertEqual(actual, testPath + os.sep)
Exemple #2
0
	def testEnsureDir02(self):
		testPath = elffiles.ensureFinalSlash(os.environ['ELVENWARE']) + "Bar/Foo/Goober"
		elffiles.ensureDir(testPath)
		self.assertTrue(os.path.exists(testPath))
		self.removeFolder(elffiles.ensureFinalSlash(os.environ['ELVENWARE']) + "Bar")