Did I find the right examples for you? yes no

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

src/p/r/Products.ImageRepository-1.0.2/Products/ImageRepository/tests/testImageRepository.py   Products.ImageRepository(Download)
    def testTestSetup(self):
        # existance of the repository
        self.failUnless('repository' in self.portal.objectIds())
        # test existance of images
        ids = self.repository.objectIds()
        for image in images:
            self.failUnless(image['id'] in ids)
        self.assertEqual(len(keywords),len(uniquekeywords))
        for keyword in keywords:
            self.failUnless(uniquekeywords.has_key(keyword[0]))
            self.assertEqual(uniquekeywords[keyword[0]], keyword[1])
 
        self.assertEqual(len(keywords),len(uniquekeywords))
        for keyword in keywords:
            self.failUnless(uniquekeywords.has_key(keyword[0]))
            self.assertEqual(uniquekeywords[keyword[0]], keyword[1])
 
        self.assertEqual(len(keywords),len(uniquekeywords))
        for keyword in keywords:
            self.failUnless(uniquekeywords.has_key(keyword[0]))
            self.assertEqual(uniquekeywords[keyword[0]], keyword[1])
        self.repository.imagerepository_addKeywords(

src/p/r/Products.ImageRepository-1.0.2/Products/ImageRepository/tests/testSetup.py   Products.ImageRepository(Download)
    def testContentTypes(self):
        types = self.portal.portal_types.objectIds()
        contents = ['ImageRepository']
        for content in contents:
            self.failUnless(content in types)
        )
        for skin in skins:
            self.failUnless(skin in skins)