diff --git a/src/Famix-Python-Importer-Tests/FamixPythonProject1Test.class.st b/src/Famix-Python-Importer-Tests/FamixPythonProject1Test.class.st index 1236328..9a50a86 100644 --- a/src/Famix-Python-Importer-Tests/FamixPythonProject1Test.class.st +++ b/src/Famix-Python-Importer-Tests/FamixPythonProject1Test.class.st @@ -404,6 +404,18 @@ FamixPythonProject1Test >> testFunctionSourceAnchor [ return z' copyReplaceAll: String cr with: String lf) ] +{ #category : 'tests - functions' } +FamixPythonProject1Test >> testFunctionsWithSameNameButDifferentParents [ + + | functions | + functions := self model allFunctions select: [ :funct | funct name = 'function_with_common_name' ]. + + self assert: functions size equals: 2. + self assertCollection: (functions collect: #functionOwner) hasSameElements: { + (self moduleNamed: 'moduleAtRoot6'). + (self packageNamed: 'root') } +] + { #category : 'tests - methods' } FamixPythonProject1Test >> testGetterAndSetter [