'get_summary() should attempt to use rendered'

@mock.patch('kuma.wiki.kumascript.get')
@override_config(KUMASCRIPT_TIMEOUT=1.0)
def test_get_summary(self, mock_kumascript_get):

    mock_kumascript_get.return_value = ('<p>summary!</p>', None)
    ok_((not self.d1.rendered_html))
    result_summary = self.d1.get_summary()
    ok_((not mock_kumascript_get.called))
    ok_((not self.d1.rendered_html))
    self.d1.render()
    ok_(self.d1.rendered_html)
    ok_(mock_kumascript_get.called)
    result_summary = self.d1.get_summary()
    eq_('summary!', result_summary)
