def test_output_equivalence(self): from pbs import whoami iam1 = whoami() iam2 = whoami() self.assertEqual(iam1, iam2)
def test_no_arg(self): import pwd from pbs import whoami u1 = whoami().strip() u2 = pwd.getpwuid(os.geteuid())[0] self.assertEqual(u1, u2)