X-Git-Url: http://git.samba.org/samba.git/?p=garming%2Fsamba-autobuild%2F.git;a=blobdiff_plain;f=python%2Fsamba%2Ftests%2Fsamba_tool%2Fntacl.py;h=3da750655480901e71051cc2352504f4f6b6b6eb;hp=c84c60ee4fb117b5b076b8c45014966b58ef4515;hb=87bbc2df972d112870bb7d5c8839663affe62b21;hpb=32266d2d48c1c38e54bcfaf1cad36f09e9cff355 diff --git a/python/samba/tests/samba_tool/ntacl.py b/python/samba/tests/samba_tool/ntacl.py index c84c60ee4fb..3da75065548 100644 --- a/python/samba/tests/samba_tool/ntacl.py +++ b/python/samba/tests/samba_tool/ntacl.py @@ -77,7 +77,7 @@ class NtACLCmdGetSetTestCase(SambaToolCmdTest): def test_ntvfs(self): path = os.environ['SELFTEST_PREFIX'] - tempf = os.path.join(path,"pytests"+str(int(100000*random.random()))) + tempf = os.path.join(path,"pytests" +str(int(100000 * random.random()))) open(tempf, 'w').write("empty") (result, out, err) = self.runsubcmd("ntacl", "set", self.acl, tempf, @@ -88,7 +88,7 @@ class NtACLCmdGetSetTestCase(SambaToolCmdTest): def test_s3fs(self): path = os.environ['SELFTEST_PREFIX'] - tempf = os.path.join(path,"pytests"+str(int(100000*random.random()))) + tempf = os.path.join(path,"pytests" +str(int(100000 * random.random()))) open(tempf, 'w').write("empty") (result, out, err) = self.runsubcmd("ntacl", "set", self.acl, tempf, @@ -100,7 +100,7 @@ class NtACLCmdGetSetTestCase(SambaToolCmdTest): def test_ntvfs_check(self): path = os.environ['SELFTEST_PREFIX'] - tempf = os.path.join(path,"pytests"+str(int(100000*random.random()))) + tempf = os.path.join(path,"pytests" +str(int(100000 * random.random()))) open(tempf, 'w').write("empty") (result, out, err) = self.runsubcmd("ntacl", "set", self.acl, tempf, @@ -114,11 +114,11 @@ class NtACLCmdGetSetTestCase(SambaToolCmdTest): "--use-ntvfs", "--as-sddl") self.assertCmdSuccess(result, out, err) self.assertEquals(err,"","Shouldn't be any error messages") - self.assertEquals(self.acl+"\n", out, "Output should be the ACL") + self.assertEquals(self.acl + "\n", out, "Output should be the ACL") def test_s3fs_check(self): path = os.environ['SELFTEST_PREFIX'] - tempf = os.path.join(path,"pytests"+str(int(100000*random.random()))) + tempf = os.path.join(path,"pytests" + str(int(100000 *random.random()))) open(tempf, 'w').write("empty") (result, out, err) = self.runsubcmd("ntacl", "set", self.acl, tempf, @@ -132,4 +132,4 @@ class NtACLCmdGetSetTestCase(SambaToolCmdTest): "--use-s3fs", "--as-sddl") self.assertCmdSuccess(result, out, err) self.assertEquals(err,"","Shouldn't be any error messages") - self.assertEquals(self.acl+"\n", out,"Output should be the ACL") + self.assertEquals(self.acl + "\n", out,"Output should be the ACL")