def testEditParams_03(self): self._config.dateTimeFormat.value = u'%c' command = CommandDateEdition(self.parser) params = u'format="%d.%m Абырвалг"' result = command.execute(params, u'') result_right = u"21.09 Абырвалг" self.assertEqual(result_right, result)
def testEditEmpty_02(self): self._config.dateTimeFormat.value = u'%d.%m' command = CommandDateEdition(self.parser) params = u'' result = command.execute(params, u'') result_right = u"21.09" self.assertEqual(result_right, result)
def testEditParams_02(self): self._config.dateTimeFormat.value = '%c' command = CommandDateEdition(self.parser) params = 'format = ""' result = command.execute(params, '') result_right = "" self.assertEqual(result_right, result)
def testEditEmpty_01(self): self._config.dateTimeFormat.value = '%d.%m.%Y' command = CommandDateEdition(self.parser) params = '' result = command.execute(params, '') result_right = "21.09.2015" self.assertEqual(result_right, result)
def testEditParams_03(self): self._config.dateTimeFormat.value = '%c' command = CommandDateEdition(self.parser) params = 'format="%d.%m Абырвалг"' result = command.execute(params, '') result_right = "21.09 Абырвалг" self.assertEqual(result_right, result)
def testEditEmpty_02(self): self._config.dateTimeFormat.value = '%d.%m' command = CommandDateEdition(self.parser) params = '' result = command.execute(params, '') result_right = "21.09" self.assertEqual(result_right, result)