~rmcbride/ubuntu/lucid/ubuntuone-client/fixucg

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_eq_inotify.py

  • Committer: Bazaar Package Importer
  • Author(s): Rodney Dawes
  • Date: 2009-07-16 17:00:00 UTC
  • mto: (17.1.1 ubuntuone-client)
  • mto: This revision was merged to the branch mainline in revision 3.
  • Revision ID: james.westby@ubuntu.com-20090716170000-tnnk149g57bxxo24
Tags: upstream-0.90.4
ImportĀ upstreamĀ versionĀ 0.90.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
33
33
        '''Test that watchs can be added.'''
34
34
        # we should have what we asked for
35
35
        self.eq.inotify_add_watch(self.root_dir)
 
36
        # pylint: disable-msg=W0212
36
37
        self.assertTrue(self.root_dir in self.eq._watchs)
37
38
 
38
39
        # we shouldn't have other stuff
43
44
        # remove what we added
44
45
        self.eq.inotify_add_watch(self.root_dir)
45
46
        self.eq.inotify_rm_watch(self.root_dir)
 
47
        # pylint: disable-msg=W0212
46
48
        self.assertTrue(self.root_dir not in self.eq._watchs)
47
49
 
48
50
        # remove different stuff
755
757
    # pylint: disable-msg=C0111
756
758
    return unittest.TestLoader().loadTestsFromName(__name__)
757
759
 
758
 
def Xtest_suite():
759
 
    # pylint: disable-msg=C0111
760
 
    loader = unittest.TestLoader()
761
 
    suite = unittest.TestSuite()
762
 
    suite.addTests(loader.loadTestsFromTestCase(SignalingTests))
763
 
    return suite
764
 
 
765
760
if __name__ == "__main__":
766
761
    unittest.main()