Exemple #1
0
    def test_exists(self, tmpdir):
        m = Mockdown(tmpdir.strpath)
        assert m.exists("a.txt") is False

        tmpdir.join("a.txt").write("hello")
        assert m.exists("a.txt") is True
Exemple #2
0
    def test_exists(self, tmpdir):
        m = Mockdown(tmpdir.strpath)
        assert m.exists("a.txt") is False

        tmpdir.join("a.txt").write("hello")
        assert m.exists("a.txt") is True