We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
add_file_from_memory
1 parent b2c8768 commit 3c5b695Copy full SHA for 3c5b695
1 file changed
tests/test_rwx.py
@@ -6,6 +6,7 @@
6
import json
7
8
import libarchive
9
+from libarchive.entry import format_time
10
from libarchive.extract import EXTRACT_OWNER, EXTRACT_PERM, EXTRACT_TIME
11
from libarchive.write import memory_writer
12
from mock import patch
@@ -156,3 +157,10 @@ def write_callback(data):
156
157
actual = b''.join(archive_entry.get_blocks())
158
assert expected == actual
159
assert archive_entry.path == entry_path
160
+ assert archive_entry.atime in (atime[0], format_time(*atime))
161
+ assert archive_entry.mtime in (mtime[0], format_time(*mtime))
162
+ assert archive_entry.ctime in (ctime[0], format_time(*ctime))
163
+ if has_birthtime:
164
+ assert archive_entry.birthtime in (
165
+ btime[0], format_time(*btime)
166
+ )
0 commit comments