def test_assoc_not_already_present(self):
        with client.test_mode as t:
            t.register_json('/foo/42/bar/?id=84', {'count': 0, 'results': []})
            t.register_json('/foo/42/bar/', {}, method='POST')
            result = self.res._assoc('bar', 42, 84)
            self.assertEqual(json.loads(t.requests[1].body),
                             {'associate': True, 'id': 84})
            self.assertTrue(result['changed'])
:param item: str, json-encoded string
dataset/ETHPy150Open ansible/tower-cli/tests/test_models_base.py/ResourceTests.test_assoc_not_already_present--crossover with--dataset/ETHPy150Open projectatomic/atomic-reactor/atomic_reactor/util.py/CommandResult.parse_item