def testCreationEmpty_01(self): self._config.dateTimeFormat.value = '%d.%m.%Y' command = CommandDateCreation(self.parser) params = '' result = command.execute(params, '') result_right = "20.08.2014" self.assertEqual(result_right, result)
def testCreationParams_03(self): self._config.dateTimeFormat.value = '%c' command = CommandDateCreation(self.parser) params = 'format="%d.%m Абырвалг"' result = command.execute(params, '') result_right = "20.08 Абырвалг" self.assertEqual(result_right, result)
def testCreationEmpty_02(self): self._config.dateTimeFormat.value = '%d.%m' command = CommandDateCreation(self.parser) params = '' result = command.execute(params, '') result_right = "20.08" self.assertEqual(result_right, result)