Esempio n. 1
0
    def test_create_asset_archive(self):
        with io.open('hash-test1.dll', 'w', encoding='utf-8') as f:
            f.write('I should find some lorem text' * 20)

        with io.open('hash-test2.so', 'w', encoding='utf-8') as f:
            f.write('I should find some lorem text' * 11)

        with io.open('binary', 'w', encoding='utf-8') as f:
            f.write('I should find some lorem text' * 5)

        filename = create_asset_archive('hash-test1.dll', '0.1')
        filename1 = create_asset_archive('hash-test2.so', '0.2')
        filename2 = create_asset_archive('binary', '0.3')

        assert os.path.exists(filename)
        assert os.path.exists(filename1)
        assert os.path.exists(filename2)
Esempio n. 2
0
    def test_create_asset_archive(self):
        with io.open('hash-test1.dll', 'w', encoding='utf-8') as f:
            f.write('I should find some lorem text' * 20)

        with io.open('hash-test2.so', 'w', encoding='utf-8') as f:
            f.write('I should find some lorem text' * 11)

        with io.open('binary', 'w', encoding='utf-8') as f:
            f.write('I should find some lorem text' * 5)

        filename = create_asset_archive('hash-test1.dll', '0.1')
        filename1 = create_asset_archive('hash-test2.so', '0.2')
        filename2 = create_asset_archive('binary', '0.3')

        assert os.path.exists(filename)
        assert os.path.exists(filename1)
        assert os.path.exists(filename2)
Esempio n. 3
0
    def test_create_asset_archive(self):
        with io.open("hash-test1.dll", "w", encoding="utf-8") as f:
            f.write("I should find some lorem text" * 20)

        with io.open("hash-test2.so", "w", encoding="utf-8") as f:
            f.write("I should find some lorem text" * 11)

        with io.open("binary", "w", encoding="utf-8") as f:
            f.write("I should find some lorem text" * 5)

        filename = create_asset_archive("hash-test1.dll", "0.1")
        filename1 = create_asset_archive("hash-test2.so", "0.2")
        filename2 = create_asset_archive("binary", "0.3")

        assert os.path.exists(filename)
        assert os.path.exists(filename1)
        assert os.path.exists(filename2)
Esempio n. 4
0
 def archive(self):
     filename = create_asset_archive(self.name, self.version)
     log.info('Created archive for %s: %s', self.name, filename)
Esempio n. 5
0
 def archive(self):
     filename = create_asset_archive(self.name, self.version)
     log.info('Created archive for %s: %s', self.name, filename)
Esempio n. 6
0
 def archive(self):
     filename = create_asset_archive(self.name, self.version)
     log.debug("Created archive for %s: %s", self.name, filename)