summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/tests/samba_tool/base.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/tests/samba_tool/base.py b/source4/scripting/python/samba/tests/samba_tool/base.py
index 628fd6c887..489d6b54e4 100644
--- a/source4/scripting/python/samba/tests/samba_tool/base.py
+++ b/source4/scripting/python/samba/tests/samba_tool/base.py
@@ -28,7 +28,6 @@ from samba.samdb import SamDB
from cStringIO import StringIO
from samba.netcmd.main import cmd_sambatool
import samba.tests
-from testtools.matchers import Contains
class SambaToolCmdTest(samba.tests.TestCase):
@@ -89,7 +88,7 @@ class SambaToolCmdTest(samba.tests.TestCase):
self.assertIsNotNone(val, msg)
def assertMatch(self, base, string, msg=""):
- self.assertThat(base, Contains(string), msg)
+ self.assertTrue(string in base, msg)
def randomName(self, count=8):
"""Create a random name, cap letters and numbers, and always starting with a letter"""