~ubuntu-branches/ubuntu/precise/ubuntuone-client/precise

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_main.py

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2012-02-16 11:08:42 UTC
  • mfrom: (1.1.60)
  • Revision ID: package-import@ubuntu.com-20120216110842-zu8gx65a07nzykga
Tags: 2.99.4-0ubuntu1
* New upstream release.
  - Work with new gireactor from twisted. (LP: #921574, LP: #928892)
  - Export an interface to validate folder paths. (LP: #824252)
  - Fix or skip some tests causing issues. (LP: #929812, LP: #929546)
* debian/watch:
  - Update watch file for new release.
* debian/control:
  - Bump standards version to 3.9.2.
  - Update dependencies and recommends to prefer gir versions.
  - Require twisted 11.1.0-1ubuntu1 which provides gireactor in a patch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    BaseTwistedTestCase, FAKED_CREDENTIALS,
27
27
)
28
28
from ubuntuone.clientdefs import VERSION
 
29
from ubuntuone.logger import NOTE
29
30
from ubuntuone.platform import (
30
31
    is_link,
31
32
    make_dir,
292
293
        """Test that the client version is logged."""
293
294
        self.build_main()
294
295
        self.assertTrue(self.handler.check_info("client version", VERSION))
 
296
 
 
297
    def test_mark(self):
 
298
        """Check the MARK logs ok."""
 
299
        main = self.build_main()
 
300
        main.log_mark()
 
301
        shouldlog = ('MARK', "State: 'INIT'", 'queues IDLE', 'connection',
 
302
                     'queue: 0', 'offloaded: 0', 'hash: 0')
 
303
        self.assertTrue(self.handler.check(NOTE, *shouldlog))