Did I find the right examples for you? yes no

All Samples(111)  |  Call(111)  |  Derive(0)  |  Import(0)

src/p/r/Products.CMFBibliographyAT-1.1.4.1/Products/CMFBibliographyAT/tests/testDuplicationImport.py   Products.CMFBibliographyAT(Download)
 
        self.insertDuplicates()
        self.assertEquals(len(self.bf.contentIds(filter=filter)), 3 ,
                          'Duplicate Entry was introduced, expected 3 unique entries')
 
 
        dup_entry = self.bf.getDuplicatesFolder().contentValues()[0]
        self.assertEquals(dup_entry.Title(), 'Programming Python.')
        self.assertEquals(len(dup_entry.getIs_duplicate_of()), 1)
 
                              'Criterias have not been changed')
 
        self.assertEquals(sec_old_criterias, sec_new_criterias,
                              'Criterias have been changed')
 
 
        folder_contents = [ c for c in self.folder.contentIds() if c != '.personal' ]
        self.assertEquals(folder_contents, ['bib_folder', 'second_bib_folder'])
        self.assertEquals(len(folder_contents), 2)
 

src/c/y/cyn.in-HEAD/products/Calendaring/tests/test_content.py   cyn.in(Download)
        result = self.cal.catalog_getevents(year=2002, month=10)
        events = result[28]['eventslist']
        self.assertEquals(len(events), 1)
        # US/Pacific = GMT-8
        self.assertEquals(events[0]['start'], '19:00:00')
        self.assertEquals(events[0]['end'], '20:00:00')
        self.assertEquals(events[0]['title'], 'Coffee with Jason')
        result = self.cal.catalog_getevents(year=2002, month=11)
        events = result[27]['eventslist']
        self.assertEquals(len(events), 1)

src/p/r/Products.Calendaring-0.5b1/Products/Calendaring/tests/test_content.py   Products.Calendaring(Download)
        result = self.cal.catalog_getevents(year=2002, month=10)
        events = result[28]['eventslist']
        self.assertEquals(len(events), 1)
        # US/Pacific = GMT-8
        self.assertEquals(events[0]['start'], '19:00:00')
        self.assertEquals(events[0]['end'], '20:00:00')
        self.assertEquals(events[0]['title'], 'Coffee with Jason')
        result = self.cal.catalog_getevents(year=2002, month=11)
        events = result[27]['eventslist']
        self.assertEquals(len(events), 1)

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testPloneView.py   Products.CMFPlone(Download)
    def testToLocalizedSize(self):
        tolocalsize = self.view.toLocalizedSize
        value = tolocalsize(3322)
        self.assertEquals(value, '3 KB')
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testPloneView.py   Products.CMFPlone(Download)
    def testToLocalizedSize(self):
        tolocalsize = self.view.toLocalizedSize
        value = tolocalsize(3322)
        self.assertEquals(value, '3 KB')
 

src/s/l/slc.mindmap-1.0/slc/mindmap/tests/testMindMeisterAPI.py   slc.mindmap(Download)
        tree = ET.fromstring(xml)
        status = tree.get('stat')
        self.assertEquals(status, 'ok')
 
    def test_echo(self):
        tree = ET.fromstring(xml)
        status = tree.get('stat')
        self.assertEquals(status, 'ok')
        echo = tree.getiterator().pop().text
        self.assertEquals(echo, to_echo)