def test_process_element(self):
        class ElementStub:
            tag = "foo"

        processor = ResultsProcessorBase()
        processor._foo = lambda x: "pre" + x.tag
        self.assertEquals("prefoo", processor.process_element(ElementStub()))
 def test_process(self):
     processor = ResultsProcessorBase()
     processor.foo = lambda x, y: x + y
     self.assertEquals(3, processor._process("foo", 1, 2))
 def test_tag_method_name(self):
     name = ResultsProcessorBase._method_name("foo")
     self.assertEquals("_foo", name)
 def test_process_element(self):
     class ElementStub:
         tag = "foo"
     processor = ResultsProcessorBase()
     processor._foo = lambda x: "pre" + x.tag 
     self.assertEquals("prefoo" , processor.process_element(ElementStub()))
 def test_process(self):
     processor = ResultsProcessorBase()
     processor.foo = lambda x, y: x + y
     self.assertEquals(3, processor._process("foo", 1, 2))
 def test_tag_method_name(self):
     name = ResultsProcessorBase._method_name("foo")
     self.assertEquals("_foo", name)
 def __init__(self, insignificant_tests_matter):
     ResultsProcessorBase.__init__(self)
     self.insignificant_tests_matter = insignificant_tests_matter
     self.all_passed = None