Exemple #1
0
    def test_with_date(self):

        self.replay()

        result = helpers.convert_date(DateTime('31.01.2012 00:00:00'))

        self.assertEquals(result, '2012-01-31 00:00:00')
Exemple #2
0
    def test_no_date(self):

        self.replay()

        result = helpers.convert_date('')

        self.assertEquals(result, '')