Imported Debian patch 4.8.10-2
This commit is contained in:
committed by
Mario Fetka
parent
8bc559c5a1
commit
358acdd85f
@@ -89,7 +89,7 @@ def test_callback_registration():
|
||||
messages.append(('Base registered callback', param))
|
||||
callbacktest_base.register_callback('test', registered_callback)
|
||||
|
||||
class SomeClass(object):
|
||||
class SomeClass:
|
||||
def registered_callback(self, command, param):
|
||||
messages.append(('Registered callback from another class', param))
|
||||
callbacktest_base.register_callback('test', SomeClass().registered_callback)
|
||||
@@ -179,12 +179,12 @@ def test_exc_callback_registration():
|
||||
|
||||
@pytest.mark.tier0
|
||||
def test_entry_to_dict():
|
||||
class FakeAttributeType(object):
|
||||
class FakeAttributeType:
|
||||
def __init__(self, name, syntax):
|
||||
self.names = (name,)
|
||||
self.syntax = syntax
|
||||
|
||||
class FakeSchema(object):
|
||||
class FakeSchema:
|
||||
def get_obj(self, type, name):
|
||||
if type != ldap.schema.AttributeType:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user