diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-03-10 00:23:40 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-03-10 05:27:51 +0100 |
commit | 7320a5c900a263794cf1a4de55ce786e0f8fa317 (patch) | |
tree | 86ac40ce99c4224517452f2ce7d42b02da873f5b /source4 | |
parent | b703267dfc731d659453e56aa54e49cc4e442f98 (diff) | |
download | samba-7320a5c900a263794cf1a4de55ce786e0f8fa317.tar.gz samba-7320a5c900a263794cf1a4de55ce786e0f8fa317.tar.bz2 samba-7320a5c900a263794cf1a4de55ce786e0f8fa317.zip |
samba.tests.samba_tool.base: Avoid unnecessary call to testtools.matchers.Contains.
Autobuild-User: Jelmer Vernooij <jelmer@samba.org>
Autobuild-Date: Sat Mar 10 05:27:51 CET 2012 on sn-devel-104
Diffstat (limited to 'source4')
-rw-r--r-- | source4/scripting/python/samba/tests/samba_tool/base.py | 3 |
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""" |