[CMF-checkins] CVS: CMF - test_Topic.py:1.6

Jeffrey Shell jeffrey@digicool.com
Mon, 7 May 2001 10:43:12 -0400 (EDT)


Update of /cvs-repository/CMF/CMFTopic/tests
In directory korak:/home/jeffrey/InstanceHomes/cmf-dev/CMF/CMFTopic/tests

Modified Files:
	test_Topic.py 
Log Message:
Commented out test_EditCriterion test case (this is now handled in
skins.  An alternate test probably needs to be devised).



--- Updated File test_Topic.py in package CMF --
--- test_Topic.py	2001/03/30 17:13:22	1.5
+++ test_Topic.py	2001/05/07 14:43:12	1.6
@@ -50,36 +50,36 @@
         assert len(query) == 1
         assert query['baz'] == 'bam'
 
-    def test_EditCriterion(self):
-        topic = Topic('top')
-        topic._setObject('crit__foo', SSC('crit__foo', 'foo'))
-        topic._setObject('crit__bar', SIC('crit__bar', 'bar'))
+##    def test_EditCriterion(self):
+##        topic = Topic('top')
+##        topic._setObject('crit__foo', SSC('crit__foo', 'foo'))
+##        topic._setObject('crit__bar', SIC('crit__bar', 'bar'))
 
-        class CritRecord:
-            pass
-        foorec = CritRecord()
-        barrec = CritRecord()
+##        class CritRecord:
+##            pass
+##        foorec = CritRecord()
+##        barrec = CritRecord()
 
-        foorec.id = 'crit__foo'
-        foorec.value = 'goodfoo'
+##        foorec.id = 'crit__foo'
+##        foorec.value = 'goodfoo'
 
-        barrec.id = 'crit__bar'
-        barrec.value = '12'
+##        barrec.id = 'crit__bar'
+##        barrec.value = '12'
 
-        query = topic.buildQuery()
-        assert len(query) == 0
-        topic.editCriteria([foorec, barrec])
-        query = topic.buildQuery()
-        assert len(query) == 2
-        assert query['foo'] == 'goodfoo'
-        assert query['bar'] == 12
+##        query = topic.buildQuery()
+##        assert len(query) == 0
+##        topic.editCriteria([foorec, barrec])
+##        query = topic.buildQuery()
+##        assert len(query) == 2
+##        assert query['foo'] == 'goodfoo'
+##        assert query['bar'] == 12
 
-        barrec.direction = SIC.MINIMUM
-        topic.editCriteria([barrec])
-        query = topic.buildQuery()
-        assert len(query) == 3
-        assert query['bar_usage'] == 'range:min'
-        assert query['foo'] == 'goodfoo'
+##        barrec.direction = SIC.MINIMUM
+##        topic.editCriteria([barrec])
+##        query = topic.buildQuery()
+##        assert len(query) == 3
+##        assert query['bar_usage'] == 'range:min'
+##        assert query['foo'] == 'goodfoo'
         
     
 def test_suite():