'Scaffolding'

def setUp(self):

    super(DeleteAssetTestCase, self).setUp()
    self.url = reverse_course_url('assets_handler', self.course.id)
    self.asset_name = 'delete_test'
    self.asset = self.get_sample_asset(self.asset_name)
    response = self.client.post(self.url, {'name': self.asset_name, 'file': self.asset})
    self.assertEquals(response.status_code, 200)
    self.uploaded_url = json.loads(response.content)['asset']['url']
    self.asset_location = AssetLocation.from_deprecated_string(self.uploaded_url)
    self.content = contentstore().find(self.asset_location)
