'test export and import of xcal'

def test_export_import(self):

    self._publishEvent(1)
    resp = self.app.get('/api/v1/events/1')
    identifier = json.loads(resp.data).get('identifier')
    resp = self.app.get(('/e/%s/schedule/calendar.xcs' % identifier))
    self.assertEqual(resp.status_code, 200)
    self.assertIn('TestSpeaker', resp.data)
    self.assertIn('TestSession', resp.data)
    print resp.data
