MCPcopy Create free account
hub / github.com/libgit2/pygit2 / test_equality

Function test_equality

test/test_tree.py:87–95  ·  view source on GitHub ↗
(barerepo: Repository)

Source from the content-addressed store, hash-verified

85
86
87def test_equality(barerepo: Repository) -> None:
88 tree_a = barerepo['18e2d2e9db075f9eb43bcb2daa65a2867d29a15e']
89 tree_b = barerepo['2ad1d3456c5c4a1c9e40aeeddb9cd20b409623c8']
90 assert isinstance(tree_a, Tree)
91 assert isinstance(tree_b, Tree)
92
93 assert tree_a['a'] != tree_b['a']
94 assert tree_a['a'] != tree_b['b']
95 assert tree_a['b'] == tree_b['b']
96
97
98def test_sorting(barerepo: Repository) -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…