mirror of
https://github.com/samba-team/samba.git
synced 2025-12-17 04:23:50 +03:00
python:tests: Save files with intended contents
We presumably here meant to use the variable ‘contents’, not ‘test_contents’. Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
2d6b10da22
commit
683dab1102
@@ -109,7 +109,7 @@ class SMBTests(samba.tests.TestCase):
|
||||
for i in range(1, 4):
|
||||
contents = "I'm file {0} in dir {1}!".format(i, subdir)
|
||||
path = self.make_sysvol_path(subdir, "file-{0}.txt".format(i))
|
||||
self.smb_conn.savefile(path, test_contents.encode('utf8'))
|
||||
self.smb_conn.savefile(path, contents.encode('utf8'))
|
||||
filepaths.append(path)
|
||||
|
||||
# sanity-check these dirs/files exist
|
||||
|
||||
Reference in New Issue
Block a user