def test_version(self):
        mock = MagicMock(side_effect=[IOError('f'), 'A B C\n'])
        with patch.dict(rsync.__salt__, {'cmd.run_stdout': mock}):
            self.assertRaises(CommandExecutionError, rsync.version)

            self.assertEqual(rsync.version(), 'C')
Returns instance of archiver class specific to given kind
dataset/ETHPy150Open saltstack/salt/tests/unit/modules/rsync_test.py/RsyncTestCase.test_version--crossover with--dataset/ETHPy150Open codeinn/vcs/vcs/utils/archivers.py/get_archiver