Ejemplo n.º 1
0
    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')
Ejemplo n.º 2
0
    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')
Ejemplo n.º 3
0
    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')
Ejemplo n.º 4
0
    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')