Did I find the right examples for you? yes no      Crawl my project      Python Jobs

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

src/b/a/babble.client-2.0/src/babble/client/tests/test_chat.py   babble.client(Download)
        self.assertEquals(online_members, [])
 
        self.logout()
        resp = json.loads(server.confirmAsOnline(None))
        self.assertEquals(resp['status'], config.ERROR)
        self.assertEquals(online_members, [])
 
        self.logout()
 
        self.login(name=username2)
        online_members = utils.get_online_members(portal)
        self.assertEquals(online_members, [member1])
        self.logout()
 
        # Now the logged in username1 is ignored
 
        # Test some methods' handling of anon users
        self.logout()
        resp = traverse('@@babblechat/initialize')()
        resp = json.loads(resp)
        # Test methods' response to a user ('portal_owner') who wasn't
        # initialized
        self.logout()
        self.loginAsPortalOwner()