From: Dan Gittik Date: Thu, 16 Jul 2015 23:28:23 +0000 (+0300) Subject: Added test for modulo operator. X-Git-Tag: rel_1_0_7~12^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ae6fd1c3899f8197250e84bae363c75d0116d082;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git Added test for modulo operator. --- diff --git a/test/sql/test_operators.py b/test/sql/test_operators.py index 0985020d13..65d1e3716b 100644 --- a/test/sql/test_operators.py +++ b/test/sql/test_operators.py @@ -1327,6 +1327,9 @@ class MathOperatorTest(fixtures.TestBase, testing.AssertsCompiledSQL): else: self._test_math_op(operator.div, '/') + def test_math_op_mod(self): + self._test_math_op(operator.mod, '%') + class ComparisonOperatorTest(fixtures.TestBase, testing.AssertsCompiledSQL): __dialect__ = 'default'