'Test parsing of date/time strings (destructive)'

def testParsingDestructive(self):

    c = S3Calendar()
    assertRaises = self.assertRaises
    assertEqual = self.assertEqual
    parse = c.calendar._parse
    with assertRaises(ValueError):
        parse('2005-04-01', '%Y-%m-%dT%H:%M:%S')
    with assertRaises(ValueError):
        parse('1975-30-11    10:30', '%d/%m/%y')
    with assertRaises(TypeError):
        parse(None, '%Y-%m-%d')
    with assertRaises(TypeError):
        parse(633, '%Y-%m-%d')
