def setUp(self): xml_element = ET.fromstring(processdsc) self.fexpr = Switch('fake-id', xml_element, 'fake-id_0', Context()) self.ch = Mock()