Exemple #1
0
    def test_mod_watch(self):
        '''
        Test the mounted watcher, called to invoke the watch command.
        '''
        name = '/mnt/sdb'

        ret = {'name': name, 'result': True, 'comment': '', 'changes': {}}

        comt = ('Watch not supported in unmount at this time')
        ret.update({'comment': comt})
        self.assertDictEqual(mount.mod_watch(name, sfun='unmount'), ret)
Exemple #2
0
    def test_mod_watch(self):
        '''
        Test the mounted watcher, called to invoke the watch command.
        '''
        name = '/mnt/sdb'

        ret = {'name': name,
               'result': True,
               'comment': '',
               'changes': {}}

        comt = ('Watch not supported in unmount at this time')
        ret.update({'comment': comt})
        self.assertDictEqual(mount.mod_watch(name, sfun='unmount'), ret)
Exemple #3
0
    def test_mod_watch(self):
        """
        Test the mounted watcher, called to invoke the watch command.
        """
        name = "/mnt/sdb"

        ret = {
            "name": name,
            "result": True,
            "comment": "Watch not supported in unmount at this time",
            "changes": {},
        }

        self.assertDictEqual(mount.mod_watch(name, sfun="unmount"), ret)