Created
January 9, 2012 23:41
-
-
Save dlitvakb/1585704 to your computer and use it in GitHub Desktop.
require.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Require(object): | |
| @staticmethod | |
| def assert_equals(expected, expectee, comment="") | |
| try: | |
| assert expected == expectee | |
| except AssertionError: | |
| comment = "%s, " if comment | |
| raise AssertionError(comment + "expected: %r, but was: %r" % (expected, expectee)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment