~mmcg069/software-center/bug848845

« back to all changes in this revision

Viewing changes to test/test_launchpad.py

merged from  lp:~gary-lasker/software-center/buy-something

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
    def setUp(self):
14
14
        pass
15
15
    
16
 
    def _cb_login_successful(self, lp):
 
16
    def _cb_login_successful(self, lp, token):
17
17
        self._login_successful = True
18
18
 
19
19
    def test_launchpad_login(self):
22
22
        # monkey patch
23
23
        lp.login = lambda u,p: True
24
24
        lp.login("user", "password")
25
 
        lp.emit("login-successful")
 
25
        lp.emit("login-successful", None)
26
26
        main_loop = glib.main_context_default()
27
27
        while main_loop.pending():
28
28
            main_loop.iteration()