~diegosarmentero/ubuntuone-windows-installer/not-validated-account

« back to all changes in this revision

Viewing changes to ubuntuone_installer/gui/qt/tests/test_currentuser.py

Fixed Tests (LP: #882519).

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
 
19
19
"""Tests for the CurrentUserController."""
20
20
 
 
21
from twisted.internet import defer
 
22
 
21
23
from ubuntuone_installer.gui.qt import currentuser
22
24
from ubuntuone_installer.gui.qt.tests import BaseTestCase
23
25
 
67
69
 
68
70
    class_ui = FakeView
69
71
 
 
72
    @defer.inlineCallbacks
70
73
    def setUp(self):
71
74
        """Initialize this test instance."""
72
75
        self.controller = currentuser.CurrentUserController()
73
76
        self.controller.view = FakeView()
74
 
        super(CurrentUserTestCase, self).setUp()
 
77
        yield super(CurrentUserTestCase, self).setUp()
75
78
 
76
79
    def test_login_success(self):
77
80
        """Check that login works correctly."""