'Testing a get'

@mock.patch('oc_process.Utils.create_tmpfile_copy')
@mock.patch('oc_process.OCProcess._run')
def test_state_list(self, mock_cmd, mock_tmpfile_copy):

    params = {'template_name': 'mysql-ephermeral', 'namespace': 'test', 'content': None, 'state': 'list', 'reconcile': False, 'create': False, 'params': {'NAMESPACE': 'test', 'DATABASE_SERVICE_NAME': 'testdb'}, 'kubeconfig': '/etc/origin/master/admin.kubeconfig', 'debug': False}
    mock_cmd.side_effect = [(0, OCProcessTest.mysql, '')]
    mock_tmpfile_copy.side_effect = ['/tmp/mock_kubeconfig']
    results = OCProcess.run_ansible(params, False)
    self.assertFalse(results['changed'])
    self.assertEqual(results['results']['results'][0]['metadata']['name'], 'mysql-ephemeral')
