Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

20 lines (15 sloc) 0.459 kb
from UnitTest import UnitTest
class Foo(object):
def __init__(self):
pass
def bar(self):
pass
class HashableTest(UnitTest):
def testMethods(self):
foo = Foo()
dMethodToInt = {}
dMethodToInt[foo.bar] = 5
dMethodToInt[foo.bar] = 6
dMethodToInt[foo.bar] = 7
self.assertEquals(1, len(dMethodToInt.keys()),
'Bug #656 Hashing class methods is not supported')
Jump to Line
Something went wrong with that request. Please try again.