[pypy-svn] r40489 - pypy/dist/pypy/tool/build/web/test

guido at codespeak.net guido at codespeak.net
Wed Mar 14 15:31:36 CET 2007


Author: guido
Date: Wed Mar 14 15:31:23 2007
New Revision: 40489

Modified:
   pypy/dist/pypy/tool/build/web/test/test_app.py
Log:
Another 'missing test'.


Modified: pypy/dist/pypy/tool/build/web/test/test_app.py
==============================================================================
--- pypy/dist/pypy/tool/build/web/test/test_app.py	(original)
+++ pypy/dist/pypy/tool/build/web/test/test_app.py	Wed Mar 14 15:31:23 2007
@@ -180,7 +180,16 @@
 
 class TestBuildsIndexPage(object):
     def test_get_builds(self):
-        pass
+        br = build.BuildRequest('foo at bar.com', {}, {'foo': 'bar'},
+                                'http://codespeak.net/svn/pypy/dist',
+                                10, 2, 123456789)
+        server_channel.send(('add_queued', br.serialize()))
+        server_channel.receive()
+        p = BuildsIndexPage(config, gateway)
+        builds = p.get_builds()
+        assert isinstance(builds, list)
+        assert isinstance(builds[-1], dict)
+        assert builds[-1]['id'] == br.id()
 
     def test_call(self):
         p = BuildsIndexPage(config, gateway)



More information about the Pypy-commit mailing list