コード例 #1
0
ファイル: test_mount.py プロジェクト: vindir/salt
    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)
コード例 #2
0
ファイル: mount_test.py プロジェクト: bryson/salt
    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)
コード例 #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)