[Checkins] SVN: grokui.admin/trunk/src/grokui/admin/tests/infoviews.py Fixed version test. This is now testing the real version of the grokui.admin, not a pinned one that forced us to change the test at each release.
Souheil CHELFOUH
souheil at chelfouh.com
Wed Sep 16 05:48:34 EDT 2009
Log message for revision 104133:
Fixed version test. This is now testing the real version of the grokui.admin, not a pinned one that forced us to change the test at each release.
Changed:
U grokui.admin/trunk/src/grokui/admin/tests/infoviews.py
-=-
Modified: grokui.admin/trunk/src/grokui/admin/tests/infoviews.py
===================================================================
--- grokui.admin/trunk/src/grokui/admin/tests/infoviews.py 2009-09-16 09:45:19 UTC (rev 104132)
+++ grokui.admin/trunk/src/grokui/admin/tests/infoviews.py 2009-09-16 09:48:34 UTC (rev 104133)
@@ -62,9 +62,11 @@
To determine the used version of `grokui.admin` we can call::
+ >>> import pkg_resources
>>> browser.open('http://localhost/@@grokadmin/@@version?pkg=grokui.admin')
- >>> print browser.contents[:16]
- grokui.admin 0.5
+ >>> version = pkg_resources.get_distribution('grokui.admin').version
+ >>> browser.contents == ('grokui.admin ' + version)
+ True
Getting the current security notification
More information about the checkins
mailing list