'Post to the asset upload url'

def upload_asset(self, name='asset-1', asset_type='text'):

    asset = self.get_sample_asset(name, asset_type)
    response = self.client.post(self.url, {'name': name, 'file': asset})
    return response
