Example #1
0
class WTimeParserTest(unittest.TestCase):

    def setUp(self):
        self.parser = WTimeParser()

    def test_parse(self):
        got_daytime = self.parser.parse("Sat Apr 06 00:49:30 +0800 2013")
        except_daytime = datetime(2013, 4, 6, 0, 49, 30, tzinfo=tzoffset(None, 28800))
        self.assertEqual(got_daytime, except_daytime)
Example #2
0
class WTimeParserTest(unittest.TestCase):
    def setUp(self):
        self.parser = WTimeParser()

    def test_parse(self):
        got_daytime = self.parser.parse("Sat Apr 06 00:49:30 +0800 2013")
        except_daytime = datetime(2013,
                                  4,
                                  6,
                                  0,
                                  49,
                                  30,
                                  tzinfo=tzoffset(None, 28800))
        self.assertEqual(got_daytime, except_daytime)
Example #3
0
 def setUp(self):
     self.parser = WTimeParser()
Example #4
0
 def setUp(self):
     self.parser = WTimeParser()