def test_insert_d(self, coll_vdirs):
        coll, vdirs = coll_vdirs
        event = Event.fromString(event_d, calendar=cal1, locale=aux.locale)
        coll.new(event, cal1)
        events = list(coll.get_events_on(aday))
        assert len(events) == 1
        assert events[0].calendar == cal1
        assert events[0].color == 'dark blue'
        assert len(list(vdirs[cal1].list())) == 1
        assert len(list(vdirs[cal2].list())) == 0
        assert len(list(vdirs[cal3].list())) == 0
        assert list(coll.get_localized(self.bstart_berlin, self.bend_berlin)) == []
insert a floating event
dataset/ETHPy150Open pimutils/khal/tests/khalendar_test.py/TestCollection.test_insert_d