(agent)
| 238 | |
| 239 | |
| 240 | def test_replace_object(agent): |
| 241 | stub_data_svc = StubDataService() |
| 242 | test_obj = TestObject(name='name0', value='value0') |
| 243 | stub_data_svc.ram['tests'] = [test_obj] |
| 244 | manager = BaseApiManager(data_svc=stub_data_svc, file_svc=None) |
| 245 | |
| 246 | data = {'name': 'name0'} |
| 247 | manager.replace_object(test_obj, data) |
| 248 | |
| 249 | assert len(stub_data_svc.ram['tests']) == 1 |
| 250 | assert not stub_data_svc.ram['tests'][0].value |
nothing calls this directly
no test coverage detected