~diegosarmentero/ubuntuone-client/darwin2-fsevents

« back to all changes in this revision

Viewing changes to tests/platform/test_logger.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:
1
1
# -*- coding: utf-8 -*-
2
2
#
3
 
# Authors: Natalia B. Bidart <natalia.bidart@canonical.com>
4
 
#
5
3
# Copyright 2011-2012 Canonical Ltd.
6
4
#
7
5
# This program is free software: you can redistribute it and/or modify it
32
30
 
33
31
import os
34
32
 
 
33
from dirspec.basedir import xdg_cache_home
35
34
from twisted.trial.unittest import TestCase
36
35
 
37
 
from ubuntu_sso import xdg_base_directory
38
 
from ubuntuone.platform.xdg_base_directory import ubuntuone_log_dir
 
36
from ubuntuone.platform.logger import ubuntuone_log_dir
39
37
 
40
38
 
41
39
class TestBaseDirectory(TestCase):
43
41
 
44
42
    def test_ubuntuone_log_dir(self):
45
43
        """The ubuntuone_log_dir is correct."""
46
 
        expected = os.path.join(xdg_base_directory.xdg_cache_home,
 
44
        expected = os.path.join(xdg_cache_home,
47
45
                                'ubuntuone', 'log')
48
46
        self.assertEqual(expected, ubuntuone_log_dir)
49
47
        self.assertTrue(os.path.exists(expected))