MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_matching

Method test_matching

Lib/test/test_filecmp.py:51–61  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

49 os.unlink(self.name_same_shallow)
50
51 def test_matching(self):
52 self.assertTrue(filecmp.cmp(self.name, self.name),
53 "Comparing file to itself fails")
54 self.assertTrue(filecmp.cmp(self.name, self.name, shallow=False),
55 "Comparing file to itself fails")
56 self.assertTrue(filecmp.cmp(self.name, self.name_same),
57 "Comparing file to identical file fails")
58 self.assertTrue(filecmp.cmp(self.name, self.name_same, shallow=False),
59 "Comparing file to identical file fails")
60 self.assertTrue(filecmp.cmp(self.name, self.name_same_shallow),
61 "Shallow identical files should be considered equal")
62
63 def test_different(self):
64 self.assertFalse(filecmp.cmp(self.name, self.name_diff),

Callers

nothing calls this directly

Calls 2

assertTrueMethod · 0.80
cmpMethod · 0.45

Tested by

no test coverage detected