summaryrefslogtreecommitdiff
path: root/git/test/lib/asserts.py
diff options
context:
space:
mode:
authorHarmon <Harmon758@gmail.com>2020-02-16 15:28:45 -0600
committerHarmon <Harmon758@gmail.com>2020-02-16 15:28:45 -0600
commit99471bb594c365c7ad7ba99faa9e23ee78255eb9 (patch)
tree04af96495c5f7f60dd8a3a20339bc488ca410ee7 /git/test/lib/asserts.py
parent45a5495966c08bb8a269783fd8fa2e1c17d97d6d (diff)
downloadgitpython-99471bb594c365c7ad7ba99faa9e23ee78255eb9.tar.gz
Remove and replace assert_match with assertRegex
Also remove no longer used assert_not_none
Diffstat (limited to 'git/test/lib/asserts.py')
-rw-r--r--git/test/lib/asserts.py14
1 files changed, 1 insertions, 13 deletions
diff --git a/git/test/lib/asserts.py b/git/test/lib/asserts.py
index a520b1ea..2401e538 100644
--- a/git/test/lib/asserts.py
+++ b/git/test/lib/asserts.py
@@ -4,7 +4,6 @@
# This module is part of GitPython and is released under
# the BSD License: http://www.opensource.org/licenses/bsd-license.php
-import re
from unittest.mock import patch
from nose.tools import (
@@ -16,16 +15,5 @@ from nose.tools import (
assert_false # @UnusedImport
)
-__all__ = ['assert_not_none', 'assert_match',
- 'assert_equal', 'assert_not_equal', 'assert_raises', 'patch', 'raises',
+__all__ = ['assert_equal', 'assert_not_equal', 'assert_raises', 'patch', 'raises',
'assert_true', 'assert_false']
-
-
-def assert_not_none(actual, msg=None):
- """verify that item is None"""
- assert actual is not None, msg
-
-
-def assert_match(pattern, string, msg=None):
- """verify that the pattern matches the string"""
- assert_not_none(re.search(pattern, string), msg)