Merge lp:~diegosarmentero/ubuntuone-client/ubuntuone-client-syncstate into lp:ubuntuone-client
| Status: | Merged | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Approved by: | Diego Sarmentero on 2012-10-10 | ||||||||
| Approved revision: | 1332 | ||||||||
| Merged at revision: | 1338 | ||||||||
| Proposed branch: | lp:~diegosarmentero/ubuntuone-client/ubuntuone-client-syncstate | ||||||||
| Merge into: | lp:ubuntuone-client | ||||||||
| Diff against target: |
238 lines (+110/-21) 4 files modified
tests/platform/sync_menu/test_linux.py (+50/-15) tests/status/test_aggregator.py (+30/-0) ubuntuone/platform/sync_menu/linux.py (+16/-6) ubuntuone/status/aggregator.py (+14/-0) |
||||||||
| To merge this branch: | bzr merge lp:~diegosarmentero/ubuntuone-client/ubuntuone-client-syncstate | ||||||||
| Related bugs: |
|
| Reviewer | Review Type | Date Requested | Status |
|---|---|---|---|
| Manuel de la Peña (community) | Approve on 2012-10-10 | ||
| Roberto Alsina (community) | 2012-10-10 | Approve on 2012-10-10 | |
|
Review via email:
|
|||
Commit Message
- Recceive notifications from aggregator when the status of syncdaemon change (LP: #1053631).
- 1332. By Diego Sarmentero on 2012-10-10
-
fixing link
| Manuel de la Peña (mandel) wrote : | # |
Code looks good and tests pass. I have a small idea to make things a little nicer, what about doing the foSyncllowing:
SyncMenuStatus = namedtuple(
['_connected', 'ignore_
def _assert_
self.
self.
self.
self.
and the we can have tests like the following (based on a current test):
def test_status_
"""Check the behavior when the status is changed from the menu."""
self.
self.
self.
self.
self.
self.
instead of:
71 + def test_status_
72 + """Check the behavior when the status is changed from the menu."""
73 + self.sync_
74 + self.assertFals
75 + self.assertFals
76 + self.assertFals
77 + self.assertTrue
78 +
79 + self.sync_
80 + self.sync_
81 + self.assertTrue
82 + self.assertFals
83 + self.assertTrue
84 + self.assertFals
Of course you can remove the use of the named tuple and just define the assert_method as:
def _assert_
Which ever you prefer :) (I felt funny using the namedtuple :P )


Code looks good, running tests takes way too long here :-(