[CMF-checkins] CVS: CMF/CMFTopic/tests - test_DateC.py:1.9.18.1 test_ListC.py:1.8.18.1 test_SIC.py:1.7.18.1 test_SSC.py:1.7.18.1 test_SortC.py:1.3.18.1 test_Topic.py:1.9.42.1

Sidnei da Silva sidnei at awkly.org
Thu Apr 22 13:48:29 EDT 2004


Update of /cvs-repository/CMF/CMFTopic/tests
In directory cvs.zope.org:/tmp/cvs-serv30596/CMFTopic/tests

Modified Files:
      Tag: CMF-1_4-branch
	test_DateC.py test_ListC.py test_SIC.py test_SSC.py 
	test_SortC.py test_Topic.py 
Log Message:
Fix version.txt to right version. Run reindent.py for removing extra tabs and whitespaces


=== CMF/CMFTopic/tests/test_DateC.py 1.9 => 1.9.18.1 ===
--- CMF/CMFTopic/tests/test_DateC.py:1.9	Thu Aug  1 15:05:13 2002
+++ CMF/CMFTopic/tests/test_DateC.py	Thu Apr 22 13:47:57 2004
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Unit tests for DateCriterion module.
 
@@ -76,7 +76,7 @@
 
         from Products.CMFTopic.DateCriteria import FriendlyDateCriterion
         friendly = FriendlyDateCriterion( 'foo', 'foofield' )
-        
+
         friendly.apply( self.lessThanFiveDaysOld )
         self.assertEqual( friendly.value, 4 )
         self.assertEqual( friendly.operation, 'min' )
@@ -119,7 +119,7 @@
         self.assertEqual( friendly.daterange, 'ahead' )
 
         now = DateTime()
-        
+
         result = friendly.getCriteriaItems()
         self.assertEqual( len( result ), 2 )
         self.assertEqual( result[0][0], 'foofield' )
@@ -135,7 +135,7 @@
 
         friendly.apply( self.lessThanFiveDaysOld )
         self.assertEqual( friendly.daterange, 'old' )
-        
+
         result = friendly.getCriteriaItems()
         self.assertEqual( len( result ), 2 )
         self.assertEqual( result[0][0], 'foofield' )
@@ -160,6 +160,6 @@
 
 def main():
     unittest.TextTestRunner().run( test_suite() )
-    
+
 if __name__ == '__main__':
     main()


=== CMF/CMFTopic/tests/test_ListC.py 1.8 => 1.8.18.1 ===
--- CMF/CMFTopic/tests/test_ListC.py:1.8	Thu Aug  1 15:05:13 2002
+++ CMF/CMFTopic/tests/test_ListC.py	Thu Apr 22 13:47:57 2004
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Unit tests for ListCriterion module.
 
@@ -34,7 +34,7 @@
         self.assertEqual( listc.field, 'foofield' )
         self.assertEqual( listc.value, ('',) )
         self.assertEqual( len(listc.getCriteriaItems()), 0 )
-    
+
     def test_Edit_withString( self ):
 
         from Products.CMFTopic.ListCriterion import ListCriterion
@@ -50,7 +50,7 @@
         self.assertEqual( len( items[0] ), 2 )
         self.assertEqual( items[0][0], 'foofield' )
         self.assertEqual( items[0][1], ( 'bar', 'baz' ) )
-    
+
     def test_Edit_withList( self ):
 
         from Products.CMFTopic.ListCriterion import ListCriterion


=== CMF/CMFTopic/tests/test_SIC.py 1.7 => 1.7.18.1 ===
--- CMF/CMFTopic/tests/test_SIC.py:1.7	Thu Aug  1 15:05:13 2002
+++ CMF/CMFTopic/tests/test_SIC.py	Thu Apr 22 13:47:57 2004
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Unit tests for SimpleIntCriterion module.
 
@@ -35,7 +35,7 @@
         self.assertEqual( sic.value, None )
         self.assertEqual( sic.getValueString(), '' )
         self.assertEqual( len(sic.getCriteriaItems() ), 0 )
-    
+
     def test_EditWithString( self ):
 
         from Products.CMFTopic.SimpleIntCriterion import SimpleIntCriterion
@@ -50,7 +50,7 @@
         self.assertEqual( len( items[0] ), 2 )
         self.assertEqual( items[0][0], 'foofield' )
         self.assertEqual( items[0][1], 0 )
-    
+
     def test_EditWithInt( self ):
 
         from Products.CMFTopic.SimpleIntCriterion import SimpleIntCriterion


=== CMF/CMFTopic/tests/test_SSC.py 1.7 => 1.7.18.1 ===
--- CMF/CMFTopic/tests/test_SSC.py:1.7	Thu Aug  1 15:05:13 2002
+++ CMF/CMFTopic/tests/test_SSC.py	Thu Apr 22 13:47:57 2004
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Unit tests for SimpleStringCriterion module.
 
@@ -25,7 +25,7 @@
             import SimpleStringCriterion
         self.failUnless(
             Criterion.isImplementedByInstancesOf( SimpleStringCriterion ) )
-    
+
     def test_Empty( self ):
 
         from Products.CMFTopic.SimpleStringCriterion \
@@ -37,7 +37,7 @@
         self.assertEqual( ssc.field, 'foofield' )
         self.assertEqual( ssc.value, '' )
         self.assertEqual( len( ssc.getCriteriaItems() ), 0 )
-    
+
     def test_Nonempty( self ):
 
         from Products.CMFTopic.SimpleStringCriterion \
@@ -65,4 +65,3 @@
 
 if __name__ == '__main__':
     main()
-    


=== CMF/CMFTopic/tests/test_SortC.py 1.3 => 1.3.18.1 ===
--- CMF/CMFTopic/tests/test_SortC.py:1.3	Thu Aug  1 15:05:13 2002
+++ CMF/CMFTopic/tests/test_SortC.py	Thu Apr 22 13:47:58 2004
@@ -1,14 +1,14 @@
 ##############################################################################
 #
 # Copyright (c) 2001 Zope Corporation and Contributors. All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE
-# 
+#
 ##############################################################################
 """ Unit tests for SortCriterion module.
 
@@ -24,7 +24,7 @@
         from Products.CMFTopic.SortCriterion import SortCriterion
         self.failUnless(
             Criterion.isImplementedByInstancesOf( SortCriterion ) )
-    
+
     def test_Empty( self ):
 
         from Products.CMFTopic.SortCriterion import SortCriterion
@@ -40,7 +40,7 @@
         self.assertEqual( len( items ), 1 )
         self.assertEqual( items[0][0], 'sort_on' )
         self.assertEqual( items[0][1], 'foofield' )
-    
+
     def test_Nonempty( self ):
 
         from Products.CMFTopic.SortCriterion import SortCriterion
@@ -69,4 +69,3 @@
 
 if __name__ == '__main__':
     main()
-    


=== CMF/CMFTopic/tests/test_Topic.py 1.9 => 1.9.42.1 ===
--- CMF/CMFTopic/tests/test_Topic.py:1.9	Thu Dec 20 16:06:27 2001
+++ CMF/CMFTopic/tests/test_Topic.py	Thu Apr 22 13:47:58 2004
@@ -12,7 +12,7 @@
 
         query = topic.buildQuery()
         self.assertEqual( len( query ), 0 )
-    
+
     def test_Simple( self ):
 
         from Products.CMFTopic.Topic import Topic
@@ -31,7 +31,7 @@
         self.assertEqual( len( query ), 2 )
         self.assertEqual( query[ 'foo' ], 'bar' )
         self.assertEqual( query[ 'baz' ], 43 )
-    
+
     def test_Nested( self ):
 
         from Products.CMFTopic.Topic import Topic




More information about the CMF-checkins mailing list