'Testing a group create'

@mock.patch('oc_group.Utils.create_tmpfile_copy')
@mock.patch('oc_group.OCGroup._run')
def test_failed_get_group(self, mock_run, mock_tmpfile_copy):

    params = copy.deepcopy(OCGroupTest.params)
    params['state'] = 'list'
    params['name'] = 'noexist'
    mock_run.side_effect = [(1, '', 'Error    from    server:    groups    "acme"    not    found')]
    mock_tmpfile_copy.side_effect = ['/tmp/mocked_kubeconfig']
    results = OCGroup.run_ansible(params, False)
    self.assertTrue(results['failed'])
