def test_requestAndResponse(self):
        example = Example(
            request=b"GET FOO",
            response=b"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)
L{_formatExample} yields L{unicode} instances representing the lines of
dataset/ETHPy150Open ClusterHQ/flocker/flocker/restapi/docs/test/test_publicapi.py/FormatExampleTests.test_requestAndResponse