'Verify that subclass methods are called'

def testSubclassing(self):

    assertEqual = self.assertEqual
    s3 = current.response.s3
    CALENDAR = 'Test'
    settings = current.deployment_settings
    settings.L10n.calendar = CALENDAR
    assertEqual(settings.get_L10n_calendar(), CALENDAR)
    c = S3Calendar()
    c._calendars[CALENDAR] = S3TestCalendar
    s3.calendar_test_parse = None
    s3.calendar_test_gdate = None
    c.parse_date('2014-09-21', dtfmt='%Y-%m-%d')
    assertEqual(s3.calendar_test_parse, S3TestCalendar.CALENDAR)
    assertEqual(s3.calendar_test_gdate, S3TestCalendar.CALENDAR)
    s3.calendar_test_format = None
    c.format_date(datetime.date(1977, 3, 15), dtfmt='%Y-%m-%d')
    assertEqual(s3.calendar_test_format, S3TestCalendar.CALENDAR)
    assertEqual(s3.calendar_test_cdate, S3TestCalendar.CALENDAR)
