[CMF-checkins] CVS: CMF - test_DateC.py:1.3 test_ListC.py:1.4 test_SIC.py:1.4 test_SSC.py:1.4

Martijn Pieters mj@digicool.com
Sun, 8 Apr 2001 15:18:25 -0400 (EDT)


Update of /cvs-repository/CMF/CMFTopic/tests
In directory korak:/tmp/cvs-serv30243/CMFTopic/tests

Modified Files:
	test_DateC.py test_ListC.py test_SIC.py test_SSC.py 
Log Message:
Fix for issue PTK(241)[]: use of .id instead of getId().

- Replace all usage of SimpleItem.id with SimpleItem.getId(). Hold on to
  your butts! I am pretty sure that I didn't miss anything and that I didn't
  break anything, but you never know.

- Remove surplus > from CMFDefault/dtml/discussionEdit.dtml.

- Add missing > to CMFTopic/skins/topic/topic_edit.dtml, this fixes the ugly
  layout.



--- Updated File test_DateC.py in package CMF --
--- test_DateC.py	2001/03/30 17:13:22	1.2
+++ test_DateC.py	2001/04/08 19:18:22	1.3
@@ -19,7 +19,7 @@
 
     def test_Empty(self):
         friendly = FriendlyDate('foo', 'foofield')
-        assert friendly.id == 'foo'
+        assert friendly.getId() == 'foo'
         assert friendly.field == 'foofield'
         assert friendly.value == None, 'Value should be None'
         assert friendly.operation == 'min', 'Operator should be min'

--- Updated File test_ListC.py in package CMF --
--- test_ListC.py	2001/03/30 17:13:22	1.3
+++ test_ListC.py	2001/04/08 19:18:23	1.4
@@ -8,7 +8,7 @@
     
     def test_Empty( self ):
         listc = LISTC('foo', 'foofield')
-        assert listc.id == 'foo'
+        assert listc.getId() == 'foo'
         assert listc.field == 'foofield'
         assert listc.value == ('',)
         assert len(listc.getCriteriaItems()) == 0
@@ -16,7 +16,7 @@
     def test_Nonempty( self ):
         listc = LISTC( 'foo', 'foofield' )
         listc.edit('bar\nbaz')
-        assert listc.id == 'foo'
+        assert listc.getId() == 'foo'
         assert listc.field == 'foofield'
         assert listc.value == ( 'bar', 'baz' )
         items =listc.getCriteriaItems()

--- Updated File test_SIC.py in package CMF --
--- test_SIC.py	2001/03/30 17:13:22	1.3
+++ test_SIC.py	2001/04/08 19:18:23	1.4
@@ -8,7 +8,7 @@
 
     def test_Empty(self):
         sic = SIC('foo', 'foofield' )
-        assert sic.id == 'foo'
+        assert sic.getId() == 'foo'
         assert sic.field == 'foofield'
         assert sic.value == None
         assert len(sic.getCriteriaItems()) == 0
@@ -16,7 +16,7 @@
     def test_Nonempty(self):
         sic = SIC('foo', 'foofield')
         sic.edit('0')
-        assert sic.id == 'foo'
+        assert sic.getId() == 'foo'
         assert sic.field == 'foofield'
         assert sic.value == 0
         items =sic.getCriteriaItems()

--- Updated File test_SSC.py in package CMF --
--- test_SSC.py	2001/03/30 17:13:22	1.3
+++ test_SSC.py	2001/04/08 19:18:23	1.4
@@ -8,7 +8,7 @@
     
     def test_Empty( self ):
         ssc = SSC('foo', 'foofield')
-        assert ssc.id == 'foo'
+        assert ssc.getId() == 'foo'
         assert ssc.field == 'foofield'
         assert ssc.value == ''
         assert len( ssc.getCriteriaItems() ) == 0
@@ -16,7 +16,7 @@
     def test_Nonempty( self ):
         ssc = SSC('foo', 'foofield')
         ssc.edit('bar')
-        assert ssc.id == 'foo'
+        assert ssc.getId() == 'foo'
         assert ssc.field == 'foofield'
         assert ssc.value == 'bar'