Switch to side-by-side view

--- a/Allura/allura/tests/functional/test_discuss.py
+++ b/Allura/allura/tests/functional/test_discuss.py
@@ -54,10 +54,7 @@
                  if 'thread' in a['href'] ][0]['href']
         r = self._make_post('This is a post')
         assert 'This is a post' in r, r
-        for link in r.html.findAll('a'):
-            if 'ui-icon-link' in str(link):
-                break
-        post_link = str(link['href'])
+        post_link = str(r.html.find('div',{'class':'edit_post_form'}).find('form')['action'])
         r = self.app.get(post_link)
         r = self.app.get(post_link[:-2], status=302)
         r = self.app.post(post_link,
@@ -72,8 +69,7 @@
                           headers={'Referer':post_link.encode("utf-8")})
         r = self.app.get(thread_link)
         assert 'Tis a reply' in r, r
-        permalinks = [ link['href'].encode('utf-8') for link in r.html.findAll('a')
-                       if 'ui-icon-link' in str(link) ]
+        permalinks = [post.find('form')['action'].encode('utf-8') for post in r.html.findAll('div',{'class':'edit_post_form'})]
         self.app.post(permalinks[1]+'flag')
         self.app.post(permalinks[1]+'moderate', params=dict(delete='delete'))
         self.app.post(permalinks[0]+'moderate', params=dict(spam='spam'))
@@ -94,10 +90,7 @@
         r = self.app.post(f['action'].encode('utf-8'), params=dict(text='Test Post'),
                           headers={'Referer':self.thread_link})
         r = r.follow()
-        for link in r.html.findAll('a'):
-            if 'ui-icon-link' in str(link):
-                break
-        self.post_link = str(link['href'])
+        self.post_link = str(r.html.find('div',{'class':'edit_post_form'}).find('form')['action'])
 
     def test_attach(self):
         r = self.app.post(self.post_link + 'attach',