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')
def test_no_date(self): self.replay() result = helpers.convert_date('') self.assertEquals(result, '')