'L{_formatExample} yields L{unicode} instances representing the lines of
a reST document describing an example HTTP session.'

def test_requestAndResponse(self):

    example = Example(request='GET    FOO', response='200    OK', doc=u'Documentation    of    some    example.')
    lines = list(_formatExample(example, {u'DOMAIN': u'example.com'}))
    self.assertEqual([u'**Example:**    Documentation    of    some    example.', u'', u'Request', u'', u'..    sourcecode::    http', u'', u'            GET    FOO', u'            Host:    api.example.com', u'            Content-Type:    application/json', u'', u'Response', u'', u'..    sourcecode::    http', u'', u'            200    OK', u'            Content-Type:    application/json', u''], lines)
