ARLO Nester
Functions
workspace.api.v0.tests.utils Namespace Reference

Functions

def Ensure_All_403_Or_Fail (testCase, client, url)
 
def Add_Update_Delete (testCase, client, modify_key, modify_value, root_url, data_dict)
 Test Adding, Updating, and Deleting a Record. More...
 

Function Documentation

def workspace.api.v0.tests.utils.Add_Update_Delete (   testCase,
  client,
  modify_key,
  modify_value,
  root_url,
  data_dict 
)

Test Adding, Updating, and Deleting a Record.

This function Creates, (optionally) Updates, and Deletes a new record through the API.

Parameters
testCasethe TestCase this test is running within
clientlogged-in APIClient instance
modify_keyThe field to test updating. If 'None', no update test is performed.
modify_valueThe data used to test the update.
root_urlThe base URL where POSTs are made; detail views are accessed by appending '{id}/' to the URL
data_dictDictionary of values to add and verify. add a new record modify new record
def workspace.api.v0.tests.utils.Ensure_All_403_Or_Fail (   testCase,
  client,
  url 
)