MCPcopy Create free account
hub / github.com/apache/cassandra-python-driver / test_copy

Method test_copy

tests/unit/test_sortedset.py:77–87  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

75 self.assertNotEqual(ss1, EMPTY)
76
77 def test_copy(self):
78 class comparable(object):
79 def __lt__(self, other):
80 return id(self) < id(other)
81
82 o = comparable()
83 ss = sortedset([comparable(), o])
84 ss2 = ss.copy()
85 self.assertNotEqual(id(ss), id(ss2))
86 self.assertTrue(o in ss)
87 self.assertTrue(o in ss2)
88
89 def test_isdisjoint(self):
90 # set, ss

Callers

nothing calls this directly

Calls 2

comparableClass · 0.85
copyMethod · 0.45

Tested by

no test coverage detected