Test Adding, Updating, and Deleting a Record.
This function Creates, (optionally) Updates, and Deletes a new record through the API.
- Parameters
-
testCase | the TestCase this test is running within |
client | logged-in APIClient instance |
modify_key | The field to test updating. If 'None', no update test is performed. |
modify_value | The data used to test the update. |
root_url | The base URL where POSTs are made; detail views are accessed by appending '{id}/' to the URL |
data_dict | Dictionary of values to add and verify. add a new record modify new record |