Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ActiveState/code
/ Foo
Class
Foo
recipes/Python/576932_Sets_custom_equalityuniqueness/recipe-576932.py:168–170 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
166
from
unittest
import
TestCase
167
168
class
Foo(object):
169
def
__init__(self, name): self.name = name
170
def
__repr__(self):
return
"%s(%r)"
% (type(self).__name__, self.name)
171
172
173
class
KeyedSetTestCase(TestCase):
Callers
3
setUp
Method · 0.70
test_addremove
Method · 0.70
test_eq_hash
Method · 0.70
Calls
no outgoing calls
Tested by
2
test_addremove
Method · 0.56
test_eq_hash
Method · 0.56