def test_Empty(self): sic = SimpleIntCriterion('foo', 'foofield') self.assertEqual(sic.getId(), 'foo') self.assertEqual(sic.field, 'foofield') self.assertEqual(sic.value, None) self.assertEqual(sic.getValueString(), '') self.assertEqual(len(sic.getCriteriaItems()), 0)
def test_Empty( self ): sic = SimpleIntCriterion( 'foo', 'foofield' ) self.assertEqual( sic.getId(), 'foo' ) self.assertEqual( sic.field, 'foofield' ) self.assertEqual( sic.value, None ) self.assertEqual( sic.getValueString(), '' ) self.assertEqual( len(sic.getCriteriaItems() ), 0 )
def test_Empty(self): from Products.CMFTopic.SimpleIntCriterion import SimpleIntCriterion sic = SimpleIntCriterion('foo', 'foofield') self.assertEqual(sic.getId(), 'foo') self.assertEqual(sic.field, 'foofield') self.assertEqual(sic.value, None) self.assertEqual(sic.getValueString(), '') self.assertEqual(len(sic.getCriteriaItems()), 0)
def test_Empty( self ): from Products.CMFTopic.SimpleIntCriterion import SimpleIntCriterion sic = SimpleIntCriterion( 'foo', 'foofield' ) self.assertEqual( sic.getId(), 'foo' ) self.assertEqual( sic.field, 'foofield' ) self.assertEqual( sic.value, None ) self.assertEqual( sic.getValueString(), '' ) self.assertEqual( len(sic.getCriteriaItems() ), 0 )