Пример #1
0
 def test_get_archive_tarball_name_absolute(self):
     tarball_name = utils_misc.get_archive_tarball_name('/tmp',
                                                        '/var/tmp/tmp',
                                                        'bz2')
     self.assertEqual(tarball_name, '/var/tmp/tmp.tar.bz2')
Пример #2
0
 def test_get_archive_tarball_name_from_dir(self):
     tarball_name = utils_misc.get_archive_tarball_name('/tmp',
                                                        None,
                                                        'bz2')
     self.assertEqual(tarball_name, 'tmp.tar.bz2')
Пример #3
0
 def test_get_archive_tarball_name(self):
     tarball_name = utils_misc.get_archive_tarball_name('/tmp',
                                                        'tmp-archive',
                                                        'bz2')
     self.assertEqual(tarball_name, 'tmp-archive.tar.bz2')