mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-06 12:00:13 +01:00
Pubsub unittest updates from Werner
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73903 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -9,23 +9,20 @@
|
||||
import imp_unittest, unittest
|
||||
import wtc
|
||||
|
||||
from wx.lib.pubsub import pub
|
||||
from wx.lib.pubsub.utils import notification
|
||||
from StringIO import StringIO
|
||||
|
||||
|
||||
#---------------------------------------------------------------------------
|
||||
|
||||
|
||||
class lib_pubsub_DefaultLog(wtc.WidgetTestCase):
|
||||
|
||||
class lib_pubsub_DefaultLog(wtc.PubsubTestCase):
|
||||
|
||||
def testNotifications(self):
|
||||
capture = StringIO()
|
||||
logger = notification.useNotifyByWriteFile(capture)
|
||||
def block():
|
||||
def listener(): pass
|
||||
pub.subscribe(listener, 'testNotifications')
|
||||
self.pub.subscribe(listener, 'testNotifications')
|
||||
block()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user