~mandel/ubuntuone-client/add-virtual-watches

« back to all changes in this revision

Viewing changes to tests/platform/test_tools.py

  • Committer: manuel.delapena at canonical
  • Date: 2012-01-16 12:16:27 UTC
  • mfrom: (1176.1.3 ubuntuone-client)
  • Revision ID: manuel.delapena@canonical.com-20120116121627-2tbt1ed9d43m21zx
Made code more efficient by using sets instead of collections.

Show diffs side-by-side

added added

removed removed

Lines of Context:
958
958
                         repr(dirty_mdids[mdid2]['path'].encode('utf-8')))
959
959
 
960
960
    @defer.inlineCallbacks
 
961
    def test_get_home_dir(self):
 
962
        """Test the get_home_dir method."""
 
963
        result = yield self.tool.get_home_dir()
 
964
        self.assertEqual(self.main.get_homedir().decode('utf-8'), result)
 
965
 
 
966
    @defer.inlineCallbacks
961
967
    def test_get_root_dir(self):
962
968
        """Test the get_root_dir method."""
963
969
        result = yield self.tool.get_root_dir()