コード例 #1
0
ファイル: base.py プロジェクト: genme/python-anyconfig
    def test_10_ensure_outdir_exists(self):
        outdir = os.path.join(self.workdir, "outdir")
        outfile = os.path.join(outdir, "a.txt")

        TT.ensure_outdir_exists(outfile)

        self.assertTrue(os.path.exists(outdir))
コード例 #2
0
ファイル: base.py プロジェクト: jirikuncar/python-anyconfig
    def test_10_ensure_outdir_exists(self):
        TT.LOGGER.setLevel(TT.logging.WARN)  # suppress info/debug log msgs.
        outdir = os.path.join(self.workdir, "outdir")
        outfile = os.path.join(outdir, "a.txt")
        TT.ensure_outdir_exists(outfile)

        self.assertTrue(os.path.exists(outdir))
コード例 #3
0
ファイル: base.py プロジェクト: ssato/python-anyconfig
    def test_10_ensure_outdir_exists(self):
        TT.LOGGER.setLevel(TT.logging.WARN)  # suppress info/debug log msgs.
        outdir = os.path.join(self.workdir, "outdir")
        outfile = os.path.join(outdir, "a.txt")
        TT.ensure_outdir_exists(outfile)

        self.assertTrue(os.path.exists(outdir))
コード例 #4
0
ファイル: base.py プロジェクト: pmquang/python-anyconfig
 def test_12_ensure_outdir_exists__no_dir(self):
     TT.ensure_outdir_exists("a.txt")
     self.assertFalse(os.path.exists(os.path.dirname("a.txt")))
コード例 #5
0
ファイル: base.py プロジェクト: jirikuncar/python-anyconfig
 def test_12_ensure_outdir_exists__no_dir(self):
     TT.ensure_outdir_exists("a.txt")
     self.assertFalse(os.path.exists(os.path.dirname("a.txt")))