~diegosarmentero/ubuntuone-client/darwin2-fsevents

« back to all changes in this revision

Viewing changes to tests/syncdaemon/test_config.py

  • Committer: Diego Sarmentero
  • Date: 2012-06-22 14:07:26 UTC
  • mfrom: (1261.2.3 ubuntuone-client)
  • Revision ID: diego.sarmentero@canonical.com-20120622140726-3m0w05qwslv24x8d
merge

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
from ConfigParser import ConfigParser
37
37
from twisted.internet import defer
38
38
from twisted.trial.unittest import TestCase
39
 
from ubuntu_sso.xdg_base_directory import (
 
39
from dirspec.basedir import (
40
40
    xdg_data_home,
41
41
    xdg_cache_home,
42
42
)
562
562
    def test_good_value(self):
563
563
        """Test the parser using a good value."""
564
564
        homedir = os.path.join('', 'home', 'fake')
565
 
        self.patch(platform, 'xdg_home', homedir)
 
565
        self.patch(platform, 'user_home', homedir)
566
566
        expected = os.path.join(self.xdg_dir, 'hola', 'mundo')
567
567
        actual = self.parser(self.good_value)
568
568
        self.assertEqual(expected, actual)