def test_parse_iso8601(self):
    self.assertEqual(parse_iso8601('2014-03-23T23:04:26+0100'), 1395612266)
    self.assertEqual(parse_iso8601('2014-03-23T22:04:26+0000'), 1395612266)
    self.assertEqual(parse_iso8601('2014-03-23T22:04:26Z'), 1395612266)
    self.assertEqual(parse_iso8601('2014-03-23T22:04:26.1234Z'), 1395612266)
    self.assertEqual(parse_iso8601('2015-09-29T08:27:31.727'), 1443515251)
    self.assertEqual(parse_iso8601('2015-09-29T08-27-31.727'), None)
def test_parse_iso8601(self):
    self.assertEqual(parse_iso8601('2014-03-23T23:04:26+0100'), 1395612266)
    self.assertEqual(parse_iso8601('2014-03-23T22:04:26+0000'), 1395612266)
    self.assertEqual(parse_iso8601('2014-03-23T22:04:26Z'), 1395612266)
    self.assertEqual(parse_iso8601('2014-03-23T22:04:26.1234Z'), 1395612266)
    self.assertEqual(parse_iso8601('2015-09-29T08:27:31.727'), 1443515251)
    self.assertEqual(parse_iso8601('2015-09-29T08-27-31.727'), None)