diff options
author | Lars Wirzenius <liw@liw.fi> | 2010-01-01 02:58:25 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2010-01-01 02:58:25 +0200 |
commit | 769ff2d2dd5434cec535a8ff4be9a9ba3a81e4bf (patch) | |
tree | 2eb2e4a175fb221408e3a3b9a1359b56e6aa590f /summainlib_tests.py | |
parent | 96f9c72e35c9a496d1ad439518e7072591b3ec92 (diff) | |
download | summain-769ff2d2dd5434cec535a8ff4be9a9ba3a81e4bf.tar.gz |
Implement lookup of username corresponding to st_uid. With unit test.
Diffstat (limited to 'summainlib_tests.py')
-rw-r--r-- | summainlib_tests.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/summainlib_tests.py b/summainlib_tests.py index 7f5a9fd..db2e6b5 100644 --- a/summainlib_tests.py +++ b/summainlib_tests.py @@ -69,3 +69,6 @@ class FilesystemObjectTests(unittest.TestCase): def test_formats_uid_correctly(self): self.assertEqual(self.new('foo')['Uid'], '0') + def test_formats_username_correctly(self): + self.assertEqual(self.new('foo')['Username'], 'root') + |