~cgregan/checkbox/audio_dolby

« back to all changes in this revision

Viewing changes to plainbox/plainbox/impl/secure/test_plugins.py

  • Committer: Tarmac
  • Author(s): Zygmunt Krynicki
  • Date: 2014-01-10 11:36:40 UTC
  • mfrom: (2588.1.1 launchpad/fixes)
  • Revision ID: tarmac-20140110113640-9ew40snbt45y8r03
"automatic merge by tarmac [r=sylvain-pineau][bug=1236377,1236505,1243610,1254189,1254191,1255066,1255085,1267794][author=zkrynicki]"

Show diffs side-by-side

added added

removed removed

Lines of Context:
347
347
 
348
348
    _P1 = "/system/providers"
349
349
    _P2 = "home/user/.providers"
350
 
    _PATH = os.path.pathsep.join([_P1, _P2])
 
350
    _DIR_LIST = [_P1, _P2]
351
351
    _EXT = ".plugin"
352
352
 
353
353
    def setUp(self):
354
354
        # Create a collection
355
 
        self.col = FsPlugInCollection(self._PATH, self._EXT)
 
355
        self.col = FsPlugInCollection(self._DIR_LIST, self._EXT)
356
356
 
357
357
    def test_path_is_set(self):
358
358
        # Ensure that path was saved
359
 
        self.assertEqual(self.col._path, self._PATH)
 
359
        self.assertEqual(self.col._dir_list, self._DIR_LIST)
360
360
 
361
361
    def test_ext_is_set(self):
362
362
        # Ensure that ext was saved
473
473
            return m
474
474
        mock_open.side_effect = fake_open
475
475
        # Create a collection that looks for both extensions
476
 
        col = FsPlugInCollection(self._P1, (".txt", ".txt.in"))
 
476
        col = FsPlugInCollection([self._P1], (".txt", ".txt.in"))
477
477
        # Load everything
478
478
        col.load()
479
479
        # Ensure that we actually tried to look at the filesystem