~brian.curtin/ubuntuone-client/820350-fix-readonly-readwrite

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_main.py

- Fixed: tests are now not modifying the real user home (LP: #915380).

Show diffs side-by-side

added added

removed removed

Lines of Context:
264
264
 
265
265
    def test_get_homedir(self):
266
266
        """The get_homedir returns the root dir."""
 
267
        self.patch(main_mod, "xdg_home", self.home_dir)
267
268
        expected = expand_user('~')
268
269
        main = self.build_main()
269
270
        self.assertEqual(main.get_homedir(), expected)