Skip to content

Commit 766d745

Browse files
committed
-
1 parent 6c0a0c2 commit 766d745

File tree

1 file changed

+0
-25
lines changed

1 file changed

+0
-25
lines changed

source_py3/test_python_toolbox/test_monkeypatching_tools/test_monkeypatch.py

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,31 +20,6 @@ def __eq__(self, other):
2020
return self is other
2121

2222

23-
def test():
24-
'''Test basic workings of `monkeypatch_method`.'''
25-
26-
class A(EqualByIdentity):
27-
pass
28-
29-
@monkeypatching_tools.monkeypatch_method(A)
30-
def meow(a):
31-
return (a, 1)
32-
33-
a = A()
34-
35-
assert a.meow() == meow(a) == (a, 1)
36-
37-
@monkeypatching_tools.monkeypatch_method(A, 'roar')
38-
def woof(a):
39-
return (a, 2)
40-
41-
assert a.roar() == woof(a) == (a, 2)
42-
43-
assert not hasattr(a, 'woof')
44-
45-
del meow, woof
46-
47-
4823
def test():
4924
'''Test basic workings of `monkeypatch_method`.'''
5025

0 commit comments

Comments
 (0)