From ccc4b96709edef936f29cf51c2b199fda1b93e6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A1ssio=20Botaro?= Date: Sun, 3 May 2015 13:36:24 -0300 Subject: [PATCH] Added one more test Added one more test to avoid mistake with backward compatibility --- gluon/tests/test_storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gluon/tests/test_storage.py b/gluon/tests/test_storage.py index 804a3fb8..328f1e09 100644 --- a/gluon/tests/test_storage.py +++ b/gluon/tests/test_storage.py @@ -138,6 +138,8 @@ class TestList(unittest.TestCase): self.assertEqual(a(3, cast=int), 1234) a.append('x') self.assertRaises(HTTP, a, 4, cast=int) + b = List() + self.assertEqual(b(0, cast=int, default=None), None) if __name__ == '__main__':