Gentoo Archives: gentoo-commits

From: "Michał Górny" <mgorny@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/pms-test-suite:master commit in: pmstestsuite/library/
Date: Tue, 02 Aug 2011 18:53:25
Message-Id: 9abfc2a16d5687cea4050dfa77ae3fa615bb9bab.mgorny@gentoo
1 commit: 9abfc2a16d5687cea4050dfa77ae3fa615bb9bab
2 Author: Michał Górny <mgorny <AT> gentoo <DOT> org>
3 AuthorDate: Tue Aug 2 18:11:51 2011 +0000
4 Commit: Michał Górny <mgorny <AT> gentoo <DOT> org>
5 CommitDate: Tue Aug 2 18:11:51 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/pms-test-suite.git;a=commit;h=9abfc2a1
7
8 Remove double definition of assertTrue().
9
10 ---
11 pmstestsuite/library/case.py | 12 ------------
12 1 files changed, 0 insertions(+), 12 deletions(-)
13
14 diff --git a/pmstestsuite/library/case.py b/pmstestsuite/library/case.py
15 index 0dd64b8..a11bafe 100644
16 --- a/pmstestsuite/library/case.py
17 +++ b/pmstestsuite/library/case.py
18 @@ -138,18 +138,6 @@ class TestCase(ABCObject):
19 if bool(cond) != expect:
20 raise AssertionError(msg)
21
22 - def assertTrue(self, cond, msg):
23 - """
24 - Assert that the condition evaluates to True.
25 -
26 - @param cond: the condition
27 - @type cond: bool
28 - @param msg: assertion description
29 - @type msg: string
30 - """
31 - if not cond:
32 - raise AssertionError(msg)
33 -
34 def assertContains(self, needle, container, msg = None):
35 """
36 Assert the following condition: C{needle in container}.