Ejemplo n.º 1
0
 def render(self, fragment, evalResult):
     rig = TestRig()
     rig.stub_result(evalResult)
     rig.process_fragment(fragment)
     result = rig.get_output_fragment_xml()
     return result.replace(" concordion:echo=\"username\">", ">")
Ejemplo n.º 2
0
 def renderAsSuccess(self, fragment):
     test_rig = TestRig(fixture=self)
     test_rig.process_fragment(fragment)
     return test_rig.get_output_fragment_xml()
Ejemplo n.º 3
0
 def render(self, fragment):
     rig = TestRig()
     rig.stub_result(self.nextResult)
     rig.process_fragment(fragment)
     return rig.get_output_fragment_xml()
Ejemplo n.º 4
0
 def getOutputFragment(self, inputFragment):
     test_rig = TestRig(fixture=self)
     test_rig.process_fragment(inputFragment)
     return test_rig.get_output_fragment_xml()
Ejemplo n.º 5
0
 def render(self, fragment):
     rig = TestRig(fixture=self)
     rig.process_fragment(fragment)
     return rig.get_output_fragment_xml()
Ejemplo n.º 6
0
 def renderAsFailure(self, fragment, acronym):
     self.acronym = acronym
     test_rig = TestRig(fixture=self)
     test_rig.process_fragment(fragment)
     return test_rig.get_output_fragment_xml()