Skip to content

Instantly share code, notes, and snippets.

@dlitvakb
Created January 9, 2012 23:41
Show Gist options
  • Select an option

  • Save dlitvakb/1585704 to your computer and use it in GitHub Desktop.

Select an option

Save dlitvakb/1585704 to your computer and use it in GitHub Desktop.
require.py
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