예제 #1
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)
예제 #2
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)
예제 #3
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)
예제 #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)
예제 #5
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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)
예제 #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)