def test_convert_bad_to_dategui_en(self):
     """dateutils - conversion of bad text date into English GUI date"""
     datetext = "2006-02-AA 18:36:01"
     dategui_sk_expected = "N/A"
     dategui_sk = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='en')
     self.assertEqual(dategui_sk, dategui_sk_expected)
 def test_convert_good_to_dategui_en(self):
     """dateutils - conversion of good text date into English GUI date"""
     datetext = "2006-07-16 18:36:01"
     dategui_en_expected = "16 Jul 2006, 18:36"
     dategui_en = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='en')
     self.assertEqual(dategui_en, dategui_en_expected)
 def test_convert_good_to_dategui_sk(self):
     """dateutils - conversion of good text date into Slovak GUI date"""
     datetext = "2006-07-16 18:36:01"
     dategui_sk_expected = "16 júl 2006, 18:36"
     dategui_sk = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='sk')
     self.assertEqual(dategui_sk, dategui_sk_expected)
Example #4
0
 def test_convert_good_to_dategui_sk(self):
     """dateutils - conversion of good text date into Slovak GUI date"""
     datetext = "2006-07-16 18:36:01"
     dategui_sk_expected = "16 júl 2006, 18:36"
     dategui_sk = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='sk')
     self.assertEqual(dategui_sk, dategui_sk_expected)
 def test_convert_bad_to_dategui_sk(self):
     """dateutils - conversion of bad text date into Slovak GUI date"""
     datetext = "2006-02-AA 18:36:01"
     dategui_sk_expected = "nepríst."
     dategui_sk = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='sk')
     self.assertEqual(dategui_sk, dategui_sk_expected)
Example #6
0
 def test_convert_good_to_dategui_en(self):
     """dateutils - conversion of good text date into English GUI date"""
     datetext = "2006-07-16 18:36:01"
     dategui_en_expected = "16 Jul 2006, 18:36"
     dategui_en = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='en')
     self.assertEqual(dategui_en, dategui_en_expected)
Example #7
0
 def test_convert_bad_to_dategui_sk(self):
     """dateutils - conversion of bad text date into Slovak GUI date"""
     datetext = "2006-02-AA 18:36:01"
     dategui_sk_expected = "nepríst."
     dategui_sk = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='sk')
     self.assertEqual(dategui_sk, dategui_sk_expected)
Example #8
0
 def test_convert_bad_to_dategui_en(self):
     """dateutils - conversion of bad text date into English GUI date"""
     datetext = "2006-02-AA 18:36:01"
     dategui_sk_expected = "N/A"
     dategui_sk = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='en')
     self.assertEqual(dategui_sk, dategui_sk_expected)
Example #9
0
 def test_convert_no_day_to_dategui_en(self):
     """dateutils - conversion of no day text date into English GUI date"""
     datetext = "2006-12-00 00:00:00"
     dategui_en_expected = "Dec 2006"
     dategui_en = dateutils.convert_datetext_to_dategui(datetext,
                                                        ln='en')
     self.assertEqual(dategui_en, dategui_en_expected)
Example #10
0
 def test_convert_no_day_to_dategui_en(self):
     """dateutils - conversion of no day text date into English GUI date"""
     datetext = "2006-12-00 00:00:00"
     dategui_en_expected = "Dec 2006"
     dategui_en = dateutils.convert_datetext_to_dategui(datetext, ln='en')
     self.assertEqual(dategui_en, dategui_en_expected)