~ubuntu-branches/ubuntu/trusty/ubuntuone-control-panel/trusty-proposed

« back to all changes in this revision

Viewing changes to ubuntuone/controlpanel/utils/tests/test_utils.py

  • Committer: Package Import Robot
  • Author(s): Rodney Dawes
  • Date: 2012-08-23 15:19:03 UTC
  • mfrom: (1.1.36)
  • Revision ID: package-import@ubuntu.com-20120823151903-3xm1f1477ut3tqxc
Tags: 3.99.4-0ubuntu1
* New upstream release.
  - Show error for folder subscribe if local path already exists and is not
    a folder. (LP: #1033488)
* debian/copyright:
  - Update to be more in line with dep5.
* debian/patches:
  - Remove patches included upstream.
* debian/rules:
  - Update to allow building directly on older versions of Ubuntu.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
from twisted.internet import defer
25
25
 
26
26
from ubuntuone.devtools.handlers import MementoHandler
 
27
from ubuntuone.devtools.testcases import skipIfOS
27
28
 
28
29
from ubuntuone.controlpanel import utils
29
30
from ubuntuone.controlpanel.tests import TestCase
149
150
                    utils.ERROR_MESSAGE: unicode(exc)}
150
151
 
151
152
        self.assertEqual(expected, result)
 
153
 
 
154
 
 
155
class FirstRunInstallTestCase(TestCase):
 
156
    """Test cases for darwin-only first-run installations."""
 
157
 
 
158
    @skipIfOS("darwin", "Darwin-only code is tested in test_darwin.")
 
159
    def test_no_op_on_win_or_linux(self):
 
160
        """Test that install_config_and_daemons does nothing on win/linux."""
 
161
        self.assertEqual(utils.install_config_and_daemons,
 
162
                         utils.no_op)