Пример #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')
Пример #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')
Пример #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')
Пример #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')