Commit 4227971d authored by Stefan Behnel's avatar Stefan Behnel

extend test

parent e2b8184e
......@@ -11,12 +11,16 @@ class testobj(object):
def __eq__(self, other):
return plop()
def test_equals():
def test_equals(x):
"""
>>> result = test_equals()
>>> x = testobj()
>>> result = test_equals(x)
>>> isinstance(result, plop)
True
>>> test_equals('hihi')
False
>>> test_equals('coucou')
True
"""
blah = testobj()
eq = blah == 'coucou' # not every str equals returns a bool ...
eq = x == 'coucou' # not every str equals returns a bool ...
return eq
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment