~pitti/ubuntu-sso-client/gi-fixes

« back to all changes in this revision

Viewing changes to ubuntu_sso/main/tests/test_linux.py

- Make login_email_password avaiable from Linux (LP: #831043).
- Fixing generate_captcha tests (LP: #803958).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1222
1222
        self.client.login(APP_NAME, self.args)
1223
1223
        self.assert_dbus_method_correct(self.client.login)
1224
1224
 
 
1225
    def test_login_email_password(self):
 
1226
        """The login_email_password is correct."""
 
1227
        self.create_mock_backend().login_email_password(email=EMAIL,
 
1228
                                                        password=PASSWORD)
 
1229
        self.mocker.replay()
 
1230
 
 
1231
        self.args['email'] = EMAIL
 
1232
        self.args['password'] = PASSWORD
 
1233
        self.client.login_email_password(APP_NAME, self.args)
 
1234
        self.assert_dbus_method_correct(self.client.login_email_password)
 
1235
 
1225
1236
 
1226
1237
class CredentialsManagementParamsTestCase(CredentialsManagementOpsTestCase):
1227
1238
    """Tests for the CredentialsManagement extra parameters handling."""