Browse files

Fixed test_add_edit_plugin. Test wasn't properly testing the cancel b…

…utton functionality due to the wrong URL
  • Loading branch information...
1 parent 9f322fa commit 5e1fa57a49531d171c8b13165e4b8467888b6992 @kux kux committed Oct 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 cms/tests/plugins.py
View
3 cms/tests/plugins.py
@@ -119,7 +119,8 @@ def test_add_edit_plugin(self):
"body":"Hello World!!",
"_cancel":True,
}
- response = self.client.post(URL_CMS_PAGE_ADD, data)
+ edit_url = '%s%d/' % (URL_CMS_PLUGIN_EDIT, created_plugin_id)
+ response = self.client.post(edit_url, data)
self.assertEquals(response.status_code, 200)
txt = Text.objects.all()[0]
self.assertEquals("Hello World", txt.body)

0 comments on commit 5e1fa57

Please sign in to comment.