def METHOD_NAME(self):
    """Test to check event with session with none ends in pentabarfxml format"""
    with self.app.test_request_context():
        session = SessionFactory(title='Cool Session', ends_at=None)
        db.session.commit()
        pentabarf_export = PentabarfExporter()
        pentabarf_string = pentabarf_export.export(session.event.id)
        pentabarf_original = fromstring(pentabarf_string)
        assert pentabarf_original.find('day/room/event/duration').text == None