import os

from unittest import TestCase
from thunderdome.gremlin import parse

class GroovyScannerTest(TestCase):
    """
    Test Groovy language scanner
    """
    
    def test_parsing_complicated_function(self):
        groovy_file = os.path.join(os.path.dirname(__file__), 'test.groovy')
        result = parse(groovy_file)
        import ipdb; ipdb.set_trace()
        assert len(result[6].body.split('\n')) == 8

@@ -336,46 +336,8 @@
     
-import ipdb; ipdb.set_trace()%0A        
 asse
@@ -375,9 +375,184 @@
 ')) == 8
+%0A%0A        result_map = %7Bx.name: x for x in result%7D%0A        assert 'get_self' in result_map%0A        assert 'return_value' in result_map%0A        assert 'long_func' in result_map
 %0A

Add Unit-Test For Scanner Problem