Skip to content

Commit 60a65e7

Browse files
author
Scott Sanderson
committed
TEST: Add test for multiple interface implementation.
1 parent 44d9d01 commit 60a65e7

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

interface/tests/test_interface.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,33 @@ def m2(self, y):
2828
pass
2929

3030

31+
def test_implement_multiple_interfaces():
32+
33+
class I1(Interface): # pragma: nocover
34+
def i1_method(self, arg1):
35+
pass
36+
37+
def shared(self, a, b, c):
38+
pass
39+
40+
class I2(Interface): # pragma: nocover
41+
def i2_method(self, arg2):
42+
pass
43+
44+
def shared(self, a, b, c):
45+
pass
46+
47+
class C(implements(I1), implements(I2)): # pragma: nocover
48+
def i1_method(self, arg1):
49+
pass
50+
51+
def i2_method(self, arg2):
52+
pass
53+
54+
def shared(self, a, b, c):
55+
pass
56+
57+
3158
def test_missing_methods():
3259

3360
class I(Interface): # pragma: nocover

0 commit comments

Comments
 (0)