'Creates a new knowledge base article.
Verifies creation.
Deletes the article'

def test_that_article_can_be_created(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'])
    kb_edit_article = kb_article_history.navigation.click_edit_article()
    actual_summary_text = str(kb_edit_article.article_summary_text)
    assert (mock_article['summary'] == actual_summary_text)
    actual_contents_text = str(kb_edit_article.article_contents_text)
    assert (mock_article['content'] == actual_contents_text)
    kb_article = kb_edit_article.navigation.click_show_history()
    kb_article.delete_entire_article_document()
