File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
python/example-pytest-selfie/tests Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -31,6 +31,20 @@ def test_binary_file_duplicate_equal():
31
31
)
32
32
33
33
34
+ def test_binary_file_duplicate_equal ():
35
+ """Test writing same binary data to a file multiple times"""
36
+ with pytest .raises (Exception ) as exc_info :
37
+ expect_selfie (b"a" ).to_be_file (
38
+ "tests/binary_test__test_binary_file_duplicate_unequal.bin"
39
+ )
40
+ expect_selfie (b"b" ).to_be_file (
41
+ "tests/binary_test__test_binary_file_duplicate_unequal.bin"
42
+ )
43
+ expect_selfie (safify (str (exc_info .value ))).to_be (
44
+ "Snapshot mismatch, TODO: string comparison"
45
+ )
46
+
47
+
34
48
def test_binary_file_mismatch ():
35
49
"""Test error handling for mismatched binary data"""
36
50
with pytest .raises (AssertionError ):
You can’t perform that action at this time.
0 commit comments