'test successful export of media, unicode and more'

def test_export_media(self):

    resp = self._put(get_path(1), {'logo': 'https://placehold.it/350x150'})
    self.assertIn('placehold', resp.data, resp.data)
    resp = self._put(get_path(1, 'speakers', 1), {'photo': 'https://placehold.it/350x150'})
    resp = self._put(get_path(1, 'sponsors', 1), {'photo': 'https://placehold.it/350x150'})
    resp = self._put(get_path(1), {'organizer_name': 'SandraM\xc3\xbcllrick'})
    self._create_set()
    dr = 'static/uploads/test_event_import'
    data = open((dr + '/event'), 'r').read()
    self.assertIn('images/logo', data)
    self.assertIn('\xc3\xbc', data)
    self.assertNotIn('\\u', data)
    obj = json.loads(data)
    logo_data = open((dr + obj['logo']), 'r').read()
    self.assertTrue((len(logo_data) > 10))
    data = open((dr + '/meta'), 'r').read()
    self.assertIn('http', data)
