Get inheritance working for simple version capabilities

This commit is contained in:
Jason Paryani
2014-04-18 18:18:54 -07:00
parent 1ef6035aea
commit 03faa0e18b
2 changed files with 38 additions and 10 deletions

View File

@@ -328,3 +328,18 @@ def test_then_args():
with pytest.raises(ValueError):
client.foo(i=5).then(lambda x, y: 1)
class ExtendsServer(Server):
def qux(self, **kwargs):
pass
def test_inheritance():
client = capability.TestExtends._new_client(ExtendsServer())
client.qux().wait()
remote = client.foo(i=5)
response = remote.wait()
assert response.x == '26'