def testComplianceClasses(self):
        resource = CalDAVResource()

        config.EnableProxyPrincipals = True
        self.assertTrue("calendar-proxy" in resource.davComplianceClasses())

        config.EnableProxyPrincipals = False
        self.assertTrue("calendar-proxy" not in resource.davComplianceClasses())
示例#2
0
    def testComplianceClasses(self):
        resource = CalDAVResource()

        config.EnableProxyPrincipals = True
        self.assertTrue("calendar-proxy" in resource.davComplianceClasses())

        config.EnableProxyPrincipals = False
        self.assertTrue("calendar-proxy" not in resource.davComplianceClasses())
示例#3
0
    def testComplianceClasses(self):
        resource = CalDAVResource()

        config.EnableProxyPrincipals = True
        self.assertTrue("calendar-proxy" in resource.davComplianceClasses())

        config.EnableProxyPrincipals = False
        self.assertTrue(
            "calendar-proxy" not in resource.davComplianceClasses())

        self.assertTrue(
            "calendarserver-group-sharee" in resource.davComplianceClasses())
        config.Sharing.Calendars.Groups.Enabled = False
        config.update()
        self.assertTrue("calendarserver-group-sharee" not in
                        resource.davComplianceClasses())
        config.Sharing.Calendars.Groups.Enabled = True
        config.update()

        self.assertTrue(
            "calendarserver-group-attendee" in resource.davComplianceClasses())
        config.GroupAttendees.Enabled = False
        config.update()
        self.assertTrue("calendarserver-group-attendee" not in
                        resource.davComplianceClasses())
        config.GroupAttendees.Enabled = True
        config.update()
示例#4
0
    def testComplianceClasses(self):
        resource = CalDAVResource()

        config.EnableProxyPrincipals = True
        self.assertTrue("calendar-proxy" in resource.davComplianceClasses())

        config.EnableProxyPrincipals = False
        self.assertTrue("calendar-proxy" not in resource.davComplianceClasses())

        self.assertTrue("calendarserver-group-sharee" in resource.davComplianceClasses())
        config.Sharing.Calendars.Groups.Enabled = False
        config.update()
        self.assertTrue("calendarserver-group-sharee" not in resource.davComplianceClasses())
        config.Sharing.Calendars.Groups.Enabled = True
        config.update()

        self.assertTrue("calendarserver-group-attendee" in resource.davComplianceClasses())
        config.GroupAttendees.Enabled = False
        config.update()
        self.assertTrue("calendarserver-group-attendee" not in resource.davComplianceClasses())
        config.GroupAttendees.Enabled = True
        config.update()