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