From 7320a5c900a263794cf1a4de55ce786e0f8fa317 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 10 Mar 2012 00:23:40 +0100 Subject: samba.tests.samba_tool.base: Avoid unnecessary call to testtools.matchers.Contains. Autobuild-User: Jelmer Vernooij Autobuild-Date: Sat Mar 10 05:27:51 CET 2012 on sn-devel-104 --- source4/scripting/python/samba/tests/samba_tool/base.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/scripting') 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""" -- cgit