CVS: anygui/test test_wrapper.py,1.3,1.4
Samuele Pedroni <[email protected]> Sun, 13 Oct 2002 17:49:58 -0700
| Newsgroups | gmane.comp.python.anygui.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/anygui/anygui/test
In directory usw-pr-cvs1:/tmp/cvs-serv32418
Modified Files:
test_wrapper.py
Log Message:
works again, exploits the _test flag added to AbstractWrapper constructor so that no application instance is needed and the push/setters/getters logic can be tested separately from concrete backend mechanims.
Index: test_wrapper.py
===================================================================
RCS file: /cvsroot/anygui/anygui/test/test_wrapper.py,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** test_wrapper.py 31 May 2002 04:35:49 -0000 1.3
--- test_wrapper.py 14 Oct 2002 00:49:56 -0000 1.4
***************
*** 54,58 ****
def setUp(self):
! self.wrapper = TestWrapperWithAggregates(Stub())
def genericAggregateTest(self, settername, attrs):
--- 54,58 ----
def setUp(self):
! self.wrapper = TestWrapperWithAggregates(Stub(), _test=1)
def genericAggregateTest(self, settername, attrs):
***************
*** 101,105 ****
def setUp(self):
! self.wrapper = TestWrapperWithoutAggregates(Stub())
def genericAggregateTest(self, attrs):
--- 101,105 ----
def setUp(self):
! self.wrapper = TestWrapperWithoutAggregates(Stub(), _test=1)
def genericAggregateTest(self, attrs):
***************
*** 121,125 ****
def __init__(self, proxy):
! AbstractWrapper.__init__(self, proxy)
self.reset()
--- 121,125 ----
def __init__(self, proxy):
! AbstractWrapper.__init__(self, proxy, _test=1)
self.reset()
***************
*** 160,164 ****
def genericUpdateTest(self, state, testCalled):
! self.wrapper.update(state)
called = self.wrapper.called
called.sort()
--- 160,164 ----
def genericUpdateTest(self, state, testCalled):
! self.wrapper.push(state)
called = self.wrapper.called
called.sort()
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf