~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_osutils.py

(gz) Add path_from_environ and clean ups to osutils and win32utils (Martin
 Packman)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2115
2115
        self.overrideEnv('LOGNAME', u'jrandom\xb6'.encode(ue))
2116
2116
        self.assertEqual(u'jrandom\xb6', osutils.getuser_unicode())
2117
2117
 
2118
 
    def test_no_username_bug_660174(self):
2119
 
        self.requireFeature(features.win32_feature)
2120
 
        for name in ('LOGNAME', 'USER', 'LNAME', 'USERNAME'):
2121
 
            self.overrideEnv(name, None)
2122
 
        self.assertEqual(u'UNKNOWN', osutils.getuser_unicode())
2123
 
 
2124
2118
 
2125
2119
class TestBackupNames(tests.TestCase):
2126
2120