diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-06-14 16:42:14 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-06-14 16:42:14 -0400 |
commit | e15d58695d6eff9a1d53e31e5ae3666434a4a1af (patch) | |
tree | c1000fa1ff38be1cf1070f0f040b811ff374b65b /lib/sqlalchemy/testing/assertions.py | |
parent | a8c6cce404caf4a9c20faefc8f11a3e37db3ea05 (diff) | |
download | sqlalchemy-e15d58695d6eff9a1d53e31e5ae3666434a4a1af.tar.gz |
- Add a new le_() assertion for less than or equals
- fix TablesTest to use the bind that we've returned from setup_bind()
to emit DELETE statements
Diffstat (limited to 'lib/sqlalchemy/testing/assertions.py')
-rw-r--r-- | lib/sqlalchemy/testing/assertions.py | 5 |
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) |