'Test using find'

@ddt.data(True, False)
def test_find(self, deprecated):

    self.set_up_assets(deprecated)
    asset_key = self.course1_key.make_asset_key('asset', self.course1_files[0])
    self.assertIsNotNone(self.contentstore.find(asset_key), 'Could    not    find    {}'.format(asset_key))
    self.assertIsNotNone(self.contentstore.find(asset_key, as_stream=True), 'Could    not    find    {}'.format(asset_key))
    unknown_asset = self.course1_key.make_asset_key('asset', 'no_such_file.gif')
    with self.assertRaises(NotFoundError):
        self.contentstore.find(unknown_asset)
    self.assertIsNone(self.contentstore.find(unknown_asset, throw_on_not_found=False), 'Found    unknown    asset    {}'.format(unknown_asset))
