samba-tool tests: fix bytes/str issue in masked test
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Wed, 24 Oct 2018 22:40:53 +0000 (11:40 +1300)
committerNoel Power <npower@samba.org>
Thu, 25 Oct 2018 19:45:59 +0000 (21:45 +0200)
This test will be revealed to the world in the next commit.

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Noel Power <npower@samba.org>
python/samba/tests/samba_tool/ou.py

index 47636d7cddb8438107871017ddddb9f89f41637d..92986a4aafb7914b0db1b7c00dc7c33a1772facd 100644 (file)
@@ -142,7 +142,7 @@ class OUCmdTestCase(SambaToolCmdTest):
 
         for ouobj in oulist:
             name = ouobj.get("name", idx=0)
-            found = self.assertMatch(out, name,
+            found = self.assertMatch(out, str(name),
                                      "ou '%s' not found" % name)
 
     def test_rename(self):