'Creates a new knowledge base article.
Verifies creation.
Edits the article, verifies the edition.
Deletes the article'

def test_that_article_can_be_edited(self, base_url, selenium, variables):

    user = variables['users']['admin']
    kb_new_article = KnowledgeBaseNewArticle(base_url, selenium).open(user['username'], user['password'])
    mock_article = MockArticle()
    kb_new_article.set_article(mock_article)
    kb_new_article.submit_article()
    kb_article_history = kb_new_article.set_article_comment_box(mock_article['comment'])
    mock_article_edited = MockArticle(suffix='_edited', title=mock_article['title'])
    kb_edit_article = kb_article_history.navigation.click_edit_article()
    kb_article_history = kb_edit_article.edit_article(mock_article_edited)
    kb_edit_article = kb_article_history.navigation.click_edit_article()
    actual_page_title = kb_edit_article.page_title
    assert (mock_article_edited['title'] in actual_page_title)
    actual_summary_text = kb_edit_article.article_summary_text
    assert (mock_article_edited['summary'] == actual_summary_text)
    actual_content_text = kb_edit_article.article_contents_text
    assert (mock_article_edited['content'] == actual_content_text)
    kb_article_history = kb_edit_article.navigation.click_show_history()
    kb_article_history.delete_entire_article_document()
