diff options
| author | Chris McDonough <chrism@agendaless.com> | 2009-11-01 00:34:50 +0000 |
|---|---|---|
| committer | Chris McDonough <chrism@agendaless.com> | 2009-11-01 00:34:50 +0000 |
| commit | 3052d0b41bd06314b0b1f1c78e9977b8174f637a (patch) | |
| tree | a2417f93f52d8389525135987bbfad8ca8f115e1 /repoze/bfg/tests | |
| parent | e1c3d96154c75335d3475f13a2bf7577840b2512 (diff) | |
| download | pyramid-3052d0b41bd06314b0b1f1c78e9977b8174f637a.tar.gz pyramid-3052d0b41bd06314b0b1f1c78e9977b8174f637a.tar.bz2 pyramid-3052d0b41bd06314b0b1f1c78e9977b8174f637a.zip | |
- The ``repoze.bfg.functional`` module was renamed to
``repoze.bfg.compat``.
Diffstat (limited to 'repoze/bfg/tests')
| -rw-r--r-- | repoze/bfg/tests/test_compat.py | 10 | ||||
| -rw-r--r-- | repoze/bfg/tests/test_view.py | 8 |
2 files changed, 10 insertions, 8 deletions
diff --git a/repoze/bfg/tests/test_compat.py b/repoze/bfg/tests/test_compat.py new file mode 100644 index 000000000..cbee29654 --- /dev/null +++ b/repoze/bfg/tests/test_compat.py @@ -0,0 +1,10 @@ +import unittest + +class TestAll(unittest.TestCase): + def test_it(self): + from repoze.bfg.compat import all + self.assertEqual(all([True, True]), True) + self.assertEqual(all([False, False]), False) + self.assertEqual(all([False, True]), False) + + diff --git a/repoze/bfg/tests/test_view.py b/repoze/bfg/tests/test_view.py index 14923f5b8..80179e247 100644 --- a/repoze/bfg/tests/test_view.py +++ b/repoze/bfg/tests/test_view.py @@ -1613,14 +1613,6 @@ class TestDeriveView(unittest.TestCase): inner_view, viewname='inner', wrapper_viewname='owrap') result = self.assertRaises(ValueError, wrapped, None, request) -class TestAll(unittest.TestCase): - def test_it(self): - from repoze.bfg.view import all - self.assertEqual(all([True, True]), True) - self.assertEqual(all([False, False]), False) - self.assertEqual(all([False, True]), False) - - class DummyContext: pass |
