def testFinalSlash01(self): testPath = "C:\\Test" actual = elffiles.ensureFinalSlash(testPath) self.assertEqual(actual, testPath + os.sep)
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")