def __date_validate_supported_locales(self, d):
     test_locales = test_po_files.TestLocale.test_locales
     for test_locale in test_locales:
         lc = "%s.UTF-8" % test_locale
         self._setupLang(lc)
         date_picker = DatePicker(d)
         valid = date_picker.date_entry_validate()
         self.assertTrue(valid)
         self.assertEquals(date_picker._date_entry.get_text(), d.date().isoformat())
 def __date_validate_supported_locales(self, d):
     test_locales = test_po_files.TestLocale.test_locales
     for test_locale in test_locales:
         lc = "%s.UTF-8" % test_locale
         self._setupLang(lc)
         date_picker = DatePicker(d)
         valid = date_picker.date_entry_validate()
         self.assertTrue(valid)
         self.assertEquals(date_picker._date_entry.get_text(), d.date().isoformat())
 def test_date_validate_default_date_locale(self):
     d = datetime(2000, 1, 1, tzinfo=LocalTz())
     date_picker = DatePicker(d)
     date_picker.date_entry_validate()
Exemple #4
0
 def _assert_is_isoformat(self, d):
     date_picker = DatePicker(d)
     valid = date_picker.date_entry_validate()
     self.assertTrue(valid)
     self.assertEquals(date_picker._date_entry.get_text(),
                       d.date().isoformat())
Exemple #5
0
 def _assert_is_isoformat(self, d):
     date_picker = DatePicker(d)
     valid = date_picker.date_entry_validate()
     self.assertTrue(valid)
     self.assertEquals(date_picker._date_entry.get_text(), d.date().isoformat())
 def test_date_validate_default_date_locale(self):
     d = datetime(2000, 1, 1, tzinfo=tzlocal())
     date_picker = DatePicker(d)
     date_picker.date_entry_validate()
 def test_date_picker_date(self):
     d = datetime(2033, 12, 29, tzinfo=tzlocal())
     date_picker = DatePicker(d)
     date_picker.date