--- a/Allura/allura/tests/functional/test_discuss.py
+++ b/Allura/allura/tests/functional/test_discuss.py
@@ -54,7 +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
- post_link = str(r.html.find('div',{'class':'edit_post_form'}).find('form')['action'])
+ post_link = str(r.html.find('div',{'class':'edit_post_form reply'}).find('form')['action'])
r = self.app.get(post_link)
r = self.app.get(post_link[:-2], status=302)
r = self.app.post(post_link,
@@ -69,7 +69,7 @@
headers={'Referer':post_link.encode("utf-8")})
r = self.app.get(thread_link)
assert 'Tis a reply' in r, r
- permalinks = [post.find('form')['action'].encode('utf-8') for post in r.html.findAll('div',{'class':'edit_post_form'})]
+ permalinks = [post.find('form')['action'].encode('utf-8') for post in r.html.findAll('div',{'class':'edit_post_form reply'})]
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'))
@@ -90,7 +90,7 @@
r = self.app.post(f['action'].encode('utf-8'), params=dict(text='Test Post'),
headers={'Referer':self.thread_link})
r = r.follow()
- self.post_link = str(r.html.find('div',{'class':'edit_post_form'}).find('form')['action'])
+ self.post_link = str(r.html.find('div',{'class':'edit_post_form reply'}).find('form')['action'])
def test_attach(self):
r = self.app.post(self.post_link + 'attach',