Пример #1
0
 def test_methods_should_be_abstract(self, monkeypatch, method_name):
     monkeypatch.delitem(locals(), "e", False)
     transport = Transport()
     f = getattr(transport, method_name)
     e = pytest.raises(Exception, f, "whatever").value
     assert e.__class__ is Exception
     assert str(e) == "not-implemented"
Пример #2
0
 def test_methods_should_be_abstract(self, monkeypatch, method_name):
     monkeypatch.delitem(locals(), "e", False)
     transport = Transport()
     f = getattr(transport, method_name)
     e = pytest.raises(Exception, f, "whatever").value
     try:
         assert e.__class__ is Exception
         assert str(e) == "not-implemented"
     finally:
         del e  # explicitly break circular reference chain in Python 3
Пример #3
0
 def test_members(self):
     t = Transport()
     assert t.options.__class__ is suds.transport.options.Options