Skip to content

Commit c7a9f63

Browse files
nvbnPaul Sokolovsky
authored and
Paul Sokolovsky
committed
unittest: Add assertFalse to TestCase
1 parent e1f42dc commit c7a9f63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

unittest/unittest.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ def assertRaises(self, exc, func, *args, **kwargs):
3535
return
3636
raise
3737

38+
def assertFalse(self, x, msg=''):
39+
assert not x, msg
40+
3841

3942
def skip(msg):
4043
def _decor(fun):

0 commit comments

Comments
 (0)