diff options
Diffstat (limited to 'test/testlib')
| -rw-r--r-- | test/testlib/__init__.py | 2 | ||||
| -rw-r--r-- | test/testlib/asserts.py | 8 | ||||
| -rw-r--r-- | test/testlib/helper.py | 2 |
3 files changed, 6 insertions, 6 deletions
diff --git a/test/testlib/__init__.py b/test/testlib/__init__.py index 77512794..e4136fcd 100644 --- a/test/testlib/__init__.py +++ b/test/testlib/__init__.py @@ -1,5 +1,5 @@ # __init__.py -# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors +# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php diff --git a/test/testlib/asserts.py b/test/testlib/asserts.py index f66af122..9a7b4050 100644 --- a/test/testlib/asserts.py +++ b/test/testlib/asserts.py @@ -1,5 +1,5 @@ # asserts.py -# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors +# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php @@ -9,7 +9,7 @@ import unittest from nose import tools from nose.tools import * -__all__ = ['assert_instance_of', 'assert_not_instance_of', +__all__ = ['assert_instance_of', 'assert_not_instance_of', 'assert_none', 'assert_not_none', 'assert_match', 'assert_not_match'] + tools.__all__ @@ -20,7 +20,7 @@ def assert_instance_of(expected, actual, msg=None): def assert_not_instance_of(expected, actual, msg=None): """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) @@ -35,4 +35,4 @@ def assert_match(pattern, string, msg=None): 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 + assert_none(re.search(pattern, string), msg) diff --git a/test/testlib/helper.py b/test/testlib/helper.py index ca262ee4..94675249 100644 --- a/test/testlib/helper.py +++ b/test/testlib/helper.py @@ -1,5 +1,5 @@ # helper.py -# Copyright (C) 2008, 2009 Michael Trier (mtrier@gmail.com) and contributors +# Copyright (C) 2008-2010 Michael Trier (mtrier@gmail.com) and contributors # # This module is part of GitPython and is released under # the BSD License: http://www.opensource.org/licenses/bsd-license.php |
