/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2008-10-01 01:32:15 UTC
  • mfrom: (3526.5.4 localweekday)
  • Revision ID: pqm@pqm.ubuntu.com-20081001013215-ouj6gl6fwotdoj7n
(Martin von Gagern) Add localization support for
        osutils.format_local_date

Show diffs side-by-side

added added

removed removed

Lines of Context:
292
292
    def test_format_date(self):
293
293
        self.assertRaises(errors.UnsupportedTimezoneFormat,
294
294
            osutils.format_date, 0, timezone='foo')
 
295
        self.assertIsInstance(osutils.format_date(0), str)
 
296
        self.assertIsInstance(osutils.format_local_date(0), unicode)
 
297
        # Testing for the actual value of the local weekday without
 
298
        # duplicating the code from format_date is difficult.
 
299
        # Instead blackbox.test_locale should check for localized
 
300
        # dates once they do occur in output strings.
295
301
 
296
302
    def test_dereference_path(self):
297
303
        self.requireFeature(SymlinkFeature)