def METHOD_NAME(self):
    input_file = FileStream(
        os.path.join(os.path.realpath(os.path.join(os.path.dirname(__file__), 'resources')),
                     'CommentTest.nestml'))
    lexer = PyNestMLLexer(input_file)
    lexer._errHandler = BailErrorStrategy()
    lexer._errHandler.reset(lexer)
    # create a token stream
    stream = CommonTokenStream(lexer)
    stream.fill()
    # parse the file
    parser = PyNestMLParser(stream)
    # parser._errHandler = BailErrorStrategy()
    parser._errHandler.reset(parser)
    # process the comments
    compilation_unit = parser.nestMLCompilationUnit()
    # now build the meta_model
    ast_builder_visitor = ASTBuilderVisitor(stream.tokens)
    ast = ast_builder_visitor.visit(compilation_unit)
    neuron_or_synapse_body_elements = ast.get_neuron_list()[0].get_body().get_body_elements()
    # check if init values comment is correctly detected
    assert (neuron_or_synapse_body_elements[0].get_comment()[0] == 'state pre comment ok')
    assert (neuron_or_synapse_body_elements[0].get_comment()[1] == 'state in comment ok')
    # check that all declaration comments are detected
    comments = neuron_or_synapse_body_elements[0].get_declarations()[0].get_comment()
    assert (comments[0] == 'pre comment 1 ok')
    assert (comments[1] == 'pre comment 2 ok')
    assert (comments[2] == 'inline comment ok')
    assert ('pre comment not ok' not in comments)
    # check that equation block comment is detected
    self.assertEqual(neuron_or_synapse_body_elements[1].get_comment()[0], 'equations comment ok')
    # check that parameters block comment is detected
    self.assertEqual(neuron_or_synapse_body_elements[2].get_comment()[0], 'parameters comment ok')
    # check that internals block comment is detected
    self.assertEqual(neuron_or_synapse_body_elements[3].get_comment()[0], 'internals comment ok')
    # check that input comment is detected
    self.assertEqual(neuron_or_synapse_body_elements[4].get_comment()[0], 'input comment ok')
    # check that output comment is detected
    self.assertEqual(neuron_or_synapse_body_elements[5].get_comment()[0], 'output comment ok')
    # check that update comment is detected
    self.assertEqual(neuron_or_synapse_body_elements[6].get_comment()[0], 'update comment ok')