'test parse_value'

@mock.patch('yedit.Yedit.write')
def test_run_ansible_and_write(self, mock_write):

    params = {'src': '/tmp/test', 'backup': False, 'separator': '.', 'state': 'present', 'edits': [], 'value': None, 'key': None, 'content': {'a': {'b': {'c': 1}}}, 'content_type': ''}
    results = Yedit.run_ansible(params)
    mock_write.side_effect = [(True, params['content'])]
    self.assertTrue(results['changed'])
