def test_rnh_cdl(self, mockParse): """Tests that the parser is called correctly""" filepath = 'blah.cdl' parse.INPUT_FORMATS['rcdl'] = mockParse parse.parse_file(filepath, 'rcdl') mockParse.assert_called_once_with('blah.cdl')
def test_flex(self, mockParse): """Tests that the parser is called correctly""" filepath = 'blah.flex' parse.INPUT_FORMATS['flex'] = mockParse parse.parse_file(filepath) mockParse.assert_called_once_with('blah.flex')