summaryrefslogtreecommitdiff
path: root/test/testlib/asserts.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2009-10-11 16:49:05 +0200
committerSebastian Thiel <byronimo@gmail.com>2009-10-11 16:49:05 +0200
commit9374a916588d9fe7169937ba262c86ad710cfa74 (patch)
treedfe77a02cfa3fbe34563326cea95e92694d21b9a /test/testlib/asserts.py
parent20f202d83bdf1f332a3cb8f010bcf8bf3c2807bd (diff)
downloadgitpython-9374a916588d9fe7169937ba262c86ad710cfa74.tar.gz
converted all spaces to tabs ( 4 spaces = 1 tab ) just to allow me and my editor to work with the files properly. Can convert it back for releaes
Diffstat (limited to 'test/testlib/asserts.py')
-rw-r--r--test/testlib/asserts.py30
1 files changed, 15 insertions, 15 deletions
diff --git a/test/testlib/asserts.py b/test/testlib/asserts.py
index f66af122..8f2acdc9 100644
--- a/test/testlib/asserts.py
+++ b/test/testlib/asserts.py
@@ -10,29 +10,29 @@ from nose import tools
from nose.tools import *
__all__ = ['assert_instance_of', 'assert_not_instance_of',
- 'assert_none', 'assert_not_none',
- 'assert_match', 'assert_not_match'] + tools.__all__
+ 'assert_none', 'assert_not_none',
+ 'assert_match', 'assert_not_match'] + tools.__all__
def assert_instance_of(expected, actual, msg=None):
- """Verify that object is an instance of expected """
- assert isinstance(actual, expected), msg
+ """Verify that object is an instance of expected """
+ assert isinstance(actual, expected), msg
def assert_not_instance_of(expected, actual, msg=None):
- """Verify that object is not an instance of expected """
- assert not isinstance(actual, expected, msg)
-
+ """Verify that object is not an instance of expected """
+ assert not isinstance(actual, expected, msg)
+
def assert_none(actual, msg=None):
- """verify that item is None"""
- assert_equal(None, actual, msg)
+ """verify that item is None"""
+ assert_equal(None, actual, msg)
def assert_not_none(actual, msg=None):
- """verify that item is None"""
- assert_not_equal(None, actual, msg)
+ """verify that item is None"""
+ assert_not_equal(None, actual, msg)
def assert_match(pattern, string, msg=None):
- """verify that the pattern matches the string"""
- assert_not_none(re.search(pattern, string), msg)
+ """verify that the pattern matches the string"""
+ assert_not_none(re.search(pattern, string), msg)
def assert_not_match(pattern, string, msg=None):
- """verify that the pattern does not match the string"""
- assert_none(re.search(pattern, string), msg) \ No newline at end of file
+ """verify that the pattern does not match the string"""
+ assert_none(re.search(pattern, string), msg) \ No newline at end of file