Ejemplo n.º 1
0
 def testOneSignal(self): #{{{
     '''A callable can only be decorated once as a signal'''
     def testme():
         pass
     s1 = signal(testme)
     s2 = signal(s1)
     self.assert_(s1 is s2)
Ejemplo n.º 2
0
 def testReturnValue(self): #{{{
     '''Returns a properly decorated function'''
     def DummyFunction(): #{{{
         return 1
     # End def #}}}
     s = signal(DummyFunction)
     self._basictest(s)