Skip to content

Commit

Permalink
Fixed test_add_edit_plugin. Test wasn't properly testing the cancel b…
Browse files Browse the repository at this point in the history
…utton functionality due to the wrong URL
  • Loading branch information
kux committed Oct 2, 2012
1 parent 9f322fa commit 5e1fa57
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cms/tests/plugins.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5e1fa57

Please sign in to comment.