def test_files_without_compress(self): file = open('%s/test.txt' % self.archive_dir, 'w') file.write('This is test content') file.close() backup = BackupPy('test', '%Y%m%d') backup.set_silent(True) backup.set_compress(False) backup.add_files('%s/test.txt' % self.archive_dir) backup.copy_to_dir('%s/archive-storage' % self.archive_dir) backup.backup() self.assertTrue(os.path.exists('%s/archive-storage/test-%s.tar' % (self.archive_dir, strftime('%Y%m%d'))))