'User tries to edit a plugin using a random url. 404 response returned'

def test_plugin_edit_wrong_url(self):

    plugin = self._create_plugin()
    (_, normal_guy) = self._get_guys()
    if (get_user_model().USERNAME_FIELD == 'email'):
        self.client.login(username='test@test.com', password='test@test.com')
    else:
        self.client.login(username='test', password='test')
    self._give_permission(normal_guy, Text, 'change')
    url = ('%s/edit-plugin/%s/' % (admin_reverse('cms_page_edit_plugin', args=[plugin.id]), plugin.id))
    response = self.client.post(url, dict())
    self.assertEqual(response.status_code, HttpResponseNotFound.status_code)
    self.assertTrue(('Plugin    not    found' in force_text(response.content)))
