~dobey/ubuntuone-client/py-only

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_status_listener.py

  • Committer: Tarmac
  • Author(s): Rodney Dawes
  • Date: 2013-02-04 22:10:27 UTC
  • mfrom: (1383.1.1 rm-zeitgeist)
  • Revision ID: tarmac-20130204221027-t8viho77hp60n5a9
Remove usage of zg to reduce complexity, as we aren't using the feature.

Show diffs side-by-side

added added

removed removed

Lines of Context:
54
54
        self.assertEqual(listener.vm, vm)
55
55
        self.assertNotEqual(listener.status_frontend, None)
56
56
 
57
 
    def test_zeitgeist_not_installed_returns_none(self):
58
 
        """get_listener returns None if status reporting is disabled."""
59
 
        self.patch(status_listener, "should_start_listener", lambda: False)
60
 
        listener = status_listener.get_listener(None, None)
61
 
        self.assertEqual(listener, None)
62
 
 
63
57
 
64
58
def listen_for(event_q, event, callback, count=1, collect=False):
65
59
    """Setup a EQ listener for the specified event."""