We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c0a0c2 commit 766d745Copy full SHA for 766d745
source_py3/test_python_toolbox/test_monkeypatching_tools/test_monkeypatch.py
@@ -20,31 +20,6 @@ def __eq__(self, other):
20
return self is other
21
22
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
48
def test():
49
'''Test basic workings of `monkeypatch_method`.'''
50
0 commit comments