Exemple #1
0
    def testItShouldBuildAModuleRepositoryWithPackage(self):
        fs.touch("./tmp/a/local/.mercury_package")

        RepositoryBuilder("./tmp", "./repo").build()

        assert os.path.exists("./repo")
        assert os.path.exists("./repo/INDEX.xml")
        assert os.path.exists("./repo/a.local")

        assert "a.local" in fs.read("./repo/INDEX.xml")
        assert fs.read("./repo/a.local")[0:4] == "\x50\x4b\x03\x04"
 def testItShouldBuildAModuleRepositoryWithPackage(self):
     fs.touch("./tmp/a/local/.mercury_package")
     
     RepositoryBuilder("./tmp", "./repo").build()
     
     assert os.path.exists("./repo")
     assert os.path.exists("./repo/INDEX")
     assert os.path.exists("./repo/a.local")
     
     assert fs.read("./repo/INDEX") == "a.local\n"
     assert fs.read("./repo/a.local")[0:4] == "\x50\x4b\x03\x04"
Exemple #3
0
 def __emit(self, path):
     """
     Write a blank file to a specified path.
     """
     
     fs.touch(path)
Exemple #4
0
 def __emit(self, path):
     """
     Write a blank file to a specified path.
     """
     
     fs.touch(path)