~mandel/ubuntuone-client/notification-center-support

« back to all changes in this revision

Viewing changes to tests/platform/test_external_interface.py

- Provide a get_home_dir() method to get a proper home dir in unicode environments (LP: #898640).
- Handle link creation with unicode paths (LP: #891173).

Show diffs side-by-side

added added

removed removed

Lines of Context:
165
165
        self.assert_remote_method('disconnect')
166
166
 
167
167
    @defer.inlineCallbacks
 
168
    def test_get_homedir(self):
 
169
        """Test get_homedir."""
 
170
        result = self.root_dir
 
171
        yield self.assert_method_called(self.service.sync,
 
172
                                        'get_homedir', result)
 
173
        self.assert_remote_method('get_homedir', out_signature='s')
 
174
 
 
175
    @defer.inlineCallbacks
168
176
    def test_get_rootdir(self):
169
177
        """Test get_rootdir."""
170
178
        result = self.root_dir