summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/assertions.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-06-14 16:45:01 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-06-14 16:45:01 -0400
commit7f7ae03b0dfa7fc29155a81a84a2eae34655c551 (patch)
treed9ff8f398a9227d19038d3ee0c8777988c9f071a /lib/sqlalchemy/testing/assertions.py
parent92ac4a9f88a5bfb1f7ea3e34b701e4eff9a65f91 (diff)
parent9ccdea3a0fe57931e779b44eb2c278b78eea3d95 (diff)
downloadsqlalchemy-7f7ae03b0dfa7fc29155a81a84a2eae34655c551.tar.gz
Merge branch 'pr182'
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r--lib/sqlalchemy/testing/assertions.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/sqlalchemy/testing/assertions.py b/lib/sqlalchemy/testing/assertions.py
index e5249c296..e0c02c896 100644
--- a/lib/sqlalchemy/testing/assertions.py
+++ b/lib/sqlalchemy/testing/assertions.py
@@ -216,6 +216,11 @@ def ne_(a, b, msg=None):
assert a != b, msg or "%r == %r" % (a, b)
+def le_(a, b, msg=None):
+ """Assert a <= b, with repr messaging on failure."""
+ assert a <= b, msg or "%r != %r" % (a, b)
+
+
def is_(a, b, msg=None):
"""Assert a is b, with repr messaging on failure."""
assert a is b, msg or "%r is not %r" % (a, b)