def get_record(self, id_value, id_attribute='uuid'): """Get a :class:`.SchemaRecord` object. Args: id_value: the value of the id_key id_attribute: attribute to use for identifying the record, (must have 'unique' constraint). Returns: SchemaRecord object """ return SchemaRecord(self.app, self.schema_name, id_value, id_attribute)
def setUp(self): # use a mock for the api calls self.mockapi = Mockapi('') # create the app object self.app = App(self.mockapi) self.schema_name = 'janraintestschema' self.uuid = '00000000-0000-0000-0000-000000000001' # create the entities object self.record = SchemaRecord(self.app, self.schema_name, self.uuid)