~ubuntu-branches/ubuntu/trusty/swift/trusty-updates

« back to all changes in this revision

Viewing changes to test/unit/common/test_utils.py

  • Committer: Package Import Robot
  • Author(s): Chuck Short
  • Date: 2013-01-28 09:40:30 UTC
  • mfrom: (1.2.16)
  • Revision ID: package-import@ubuntu.com-20130128094030-aetz57x2qz9ye2d4
Tags: 1.7.6-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
632
632
        utils.drop_privileges(user)
633
633
        for func in required_func_calls:
634
634
            self.assert_(utils.os.called_funcs[func])
 
635
        import pwd
 
636
        self.assertEquals(pwd.getpwnam(user)[5], utils.os.environ['HOME'])
635
637
 
636
638
        # reset; test same args, OSError trying to get session leader
637
639
        utils.os = MockOs(called_funcs=required_func_calls,