[CalendarServer-changes] [7925] CalendarServer/branches/users/glyph/imip-and-admin-html/ calendarserver/webadmin/test/test_resource.py

source_changes at macosforge.org source_changes at macosforge.org
Thu Aug 11 21:44:46 PDT 2011


Revision: 7925
          http://trac.macosforge.org/projects/calendarserver/changeset/7925
Author:   glyph at apple.com
Date:     2011-08-11 21:44:46 -0700 (Thu, 11 Aug 2011)
Log Message:
-----------
select link text

Modified Paths:
--------------
    CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/test/test_resource.py

Modified: CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/test/test_resource.py
===================================================================
--- CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/test/test_resource.py	2011-08-12 04:44:35 UTC (rev 7924)
+++ CalendarServer/branches/users/glyph/imip-and-admin-html/calendarserver/webadmin/test/test_resource.py	2011-08-12 04:44:46 UTC (rev 7925)
@@ -120,9 +120,18 @@
         rows = getElementsByTagName(tables[0], 'tr')
         self.assertEquals(len(rows), 3)
         firstRowCells = getElementsByTagName(rows[1], 'td')
-        self.assertEquals([gatherTextNodes(cell) for cell in firstRowCells[1:]],
-                         ["Bob Bobson", "User", "bob", "boblogin",
-                          "bob at example.com, bob at other.example.com"])
+        self.assertEquals(
+            [gatherTextNodes(cell) for cell in firstRowCells[1:]],
+            ["Bob Bobson", "User", "bob", "boblogin",
+             "bob at example.com, bob at other.example.com"]
+        )
+        [resourceLink] = getElementsByTagName(
+            firstRowCells[0], 'a')
+        self.assertEquals(
+            resourceLink.getAttribute("href"),
+            "/admin/?resourceId=users:bob"
+        )
+        self.assertEquals(gatherTextNodes(resourceLink), "select")
 
 
     realmName = 'Fake'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/calendarserver-changes/attachments/20110811/9c027420/attachment-0001.html>


More information about the calendarserver-changes mailing list