'Make sure we can watch the article when submitting an edit.'

@mock.patch.object(EditDocumentEvent, 'notify')
def test_watch_article_from_edit_page(self, notify_on_edit):

    data = new_document_data()
    data['form'] = 'rev'
    data['notify-future-changes'] = 'Yes'
    response = post(self.client, 'wiki.edit_document', data, args=[self.d.slug])
    eq_(200, response.status_code)
    assert notify_on_edit.called
