mirror of
https://github.com/samba-team/samba.git
synced 2025-12-16 00:23:52 +03:00
tests: move wire_mode_to_unix() to libsmb.py
Signed-off-by: Ralph Boehme <slow@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
This commit is contained in:
@@ -70,13 +70,6 @@ class Smb3UnixTests(samba.tests.libsmb.LibsmbTests):
|
||||
|
||||
return (conn1, conn2)
|
||||
|
||||
def wire_mode_to_unix(self, wire):
|
||||
mode = libsmb.wire_mode_to_unix(wire)
|
||||
type = stat.S_IFMT(mode)
|
||||
perms = mode & (stat.S_IRWXU|stat.S_IRWXG|stat.S_IRWXO|
|
||||
stat.S_ISUID|stat.S_ISGID|stat.S_ISVTX)
|
||||
return (type, perms)
|
||||
|
||||
def test_negotiate_context_posix(self):
|
||||
c = libsmb.Conn(
|
||||
self.server_ip,
|
||||
|
||||
Reference in New Issue
Block a user