Exemple #1
0
 def test__convert_None_to_Interface_w_other(self):
     from zope.interface.adapter import _convert_None_to_Interface
     other = object()
     self.failUnless(_convert_None_to_Interface(other) is other)
Exemple #2
0
 def test__convert_None_to_Interface_w_None(self):
     from zope.interface.adapter import _convert_None_to_Interface
     from zope.interface.interface import Interface
     self.failUnless(_convert_None_to_Interface(None) is Interface)