Did I find the right examples for you? yes no

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

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testFolderButtons.py   Products.CMFPlone(Download)
                                  new_titles=[new_title])
        self.assertEqual(getattr(self.folder.foo, 'doc1', None), None)
        self.assertNotEqual(getattr(self.folder.foo, 'baz', None), None)
        self.assertEqual(self.folder.foo.baz.Title(), 'Test Folder - Snooze!')
 
        # but the undeletable object will still be in place
        undeletable = getattr(self.folder, 'no_delete', None)
        self.assertNotEqual(undeletable, None)
        # manage_beforeDelete will have been called, but the change it
        # makes should have been rolled back
        # transaction should have been rolled-back and the state
        # should not have changed
        self.assertNotEqual(self.wtool.getInfoFor(self.folder.foo.doc1,
                                               'review_state', None),
                         'published')

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testFolderButtons.py   Products.CMFPlone(Download)
                                  new_titles=[new_title])
        self.assertEqual(getattr(self.folder.foo, 'doc1', None), None)
        self.assertNotEqual(getattr(self.folder.foo, 'baz', None), None)
        self.assertEqual(self.folder.foo.baz.Title(), 'Test Folder - Snooze!')
 
        # but the undeletable object will still be in place
        undeletable = getattr(self.folder, 'no_delete', None)
        self.assertNotEqual(undeletable, None)
        # manage_beforeDelete will have been called, but the change it
        # makes should have been rolled back
        # transaction should have been rolled-back and the state
        # should not have changed
        self.assertNotEqual(self.wtool.getInfoFor(self.folder.foo.doc1,
                                               'review_state', None),
                         'published')

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testRegistrationTool.py   Products.CMFPlone(Download)
    def testMD5BaseAttribute(self):
        # Verify that if the _v_md5base attribute is missing, things
        # fall back to the class attribute and its default value.
        self.registration._md5base()
        self.assertNotEqual(self.registration._v_md5base, None)
        self.assertEqual(pw, self.registration.getPassword(6, salt))
        # These should fail
        self.assertNotEqual(pw, self.registration.getPassword(7, salt))
        self.assertNotEqual(pw, self.registration.getPassword(6, salt + 'x'))
 

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testRegistrationTool.py   Products.CMFPlone(Download)
    def testMD5BaseAttribute(self):
        # Verify that if the _v_md5base attribute is missing, things
        # fall back to the class attribute and its default value.
        self.registration._md5base()
        self.assertNotEqual(self.registration._v_md5base, None)
        self.assertEqual(pw, self.registration.getPassword(6, salt))
        # These should fail
        self.assertNotEqual(pw, self.registration.getPassword(7, salt))
        self.assertNotEqual(pw, self.registration.getPassword(6, salt + 'x'))
 

src/p/r/Products.CMFPlone-5.0a2/Products/CMFPlone/tests/testLoggedIn.py   Products.CMFPlone(Download)
    def testLoggedInCreatesMemberArea(self):
        if self.membership.memberareaCreationFlag == 'True':
            self.assertEqual(self.membership.getHomeFolder(), None)
            self.portal.logged_in()
            self.assertNotEqual(self.membership.getHomeFolder(), None)

src/p/r/Products.CMFPlone-HEAD/Products/CMFPlone/tests/testLoggedIn.py   Products.CMFPlone(Download)
    def testLoggedInCreatesMemberArea(self):
        if self.membership.memberareaCreationFlag == 'True':
            self.assertEqual(self.membership.getHomeFolder(), None)
            self.portal.logged_in()
            self.assertNotEqual(self.membership.getHomeFolder(), None)

src/p/r/Products.ATContentTypes-2.2.1/Products/ATContentTypes/tests/test_portal_factory.py   Products.ATContentTypes(Download)
        new_roles = [r for r in self.folder.rolesOfPermission(AddPortalContent)
                        if r['name'] == 'Anonymous']
        self.assertNotEqual(previous_roles, new_roles)
 
        temp_folder = self.folder.restrictedTraverse(

src/p/r/Products.CMFBibliographyAT-1.1.4.1/Products/CMFBibliographyAT/tests/testDuplicationImport.py   Products.CMFBibliographyAT(Download)
    def testBibtexImportDuplicate_Access(self):
        self.insertDuplicates()
 
        self.assertNotEqual(self.bf.getDuplicatesFolder().contentValues(), [])