def test_createAddressBookStore(self): """ Creating a AddressBookHomeProvisioningFile will create a paired AddressBookStore. """ assertProvides(self, IDataStore, self.actualRoot.getChild("addressbooks")._newStore)
def test_lookupAddressBookHome(self): """ When a L{CalDAVResource} representing an existing addressbook home is looked up in a AddressBookHomeFile, it will create a corresponding L{AddressBookHome} via C{newTransaction().addressbookHomeWithUID}. """ calDavFile = yield self.getResource("addressbooks/users/wsanchez/") yield self.commit() assertProvides(self, IAddressBookHome, calDavFile._newStoreHome)
def test_lookupCalendarHome(self): """ When a L{CalDAVResource} representing an existing calendar home is looked up in a CalendarHomeResource, it will create a corresponding L{CalendarHome} via C{newTransaction().calendarHomeWithUID}. """ calDavFile = yield self.getResource("calendars/users/wsanchez/") yield self.commit() assertProvides(self, ICalendarHome, calDavFile._newStoreHome)
def test_createStore(self): """ Creating a DirectoryCalendarHomeProvisioningResource will create a paired CalendarStore. """ assertProvides(self, IDataStore, self._sqlCalendarStore)
def test_createAddressBookStore(self): """ Creating a AddressBookHomeProvisioningFile will create a paired AddressBookStore. """ assertProvides(self, IDataStore, self.addressbookCollection._newStore)