def test_parser(self): """ Parse the output of the ``render-html`` action. """ _, parser = actions.render_html(u'http://example.com/input1') result = {u'links': {u'result': [u'http://example.com/output1']}} self.assertThat(parser(result), Equals(u'http://example.com/output1'))
def test_parser(self): """ Parse the output of the ``render-html`` action. """ _, parser = actions.render_html(u'http://example.com/input1') result = {u'links': {u'result': [u'http://example.com/output1']}} self.assertThat( parser(result), Equals(u'http://example.com/output1'))
def test_no_base_uri(self): """ Construct a ``render-html`` action without a base URI. """ action, _ = actions.render_html(u'http://example.com/input1') self.assertThat( action, Equals({u'action': u'render-html', u'parameters': { u'input': u'http://example.com/input1'}}))
def test_no_base_uri(self): """ Construct a ``render-html`` action without a base URI. """ action, _ = actions.render_html(u'http://example.com/input1') self.assertThat( action, Equals({ u'action': u'render-html', u'parameters': { u'input': u'http://example.com/input1' } }))