diff --git a/src/Famix-Python-Importer-Tests/FamixPythonProject1Test.class.st b/src/Famix-Python-Importer-Tests/FamixPythonProject1Test.class.st index 1694390..72e92ed 100644 --- a/src/Famix-Python-Importer-Tests/FamixPythonProject1Test.class.st +++ b/src/Famix-Python-Importer-Tests/FamixPythonProject1Test.class.st @@ -150,6 +150,34 @@ FamixPythonProject1Test >> testClassVariableSourceAnchor [ self assert: variable sourceAnchor endPos equals: 581 ] +{ #category : 'tests - attributes' } +FamixPythonProject1Test >> testClassVariablesAssignedWithATuple [ + + | variable | + self denyEmpty: self model allAttributes. + + variable := self attributeNamed: 'cvarTuple1'. + + self assert: variable class equals: FamixPythonAttribute. + self assert: variable name equals: 'cvarTuple1'. + self assert: variable parentType equals: (self classNamed: 'ClassWithTuples'). + self assert: variable isClassSide. + + variable := self attributeNamed: 'cvarTuple2'. + + self assert: variable class equals: FamixPythonAttribute. + self assert: variable name equals: 'cvarTuple2'. + self assert: variable parentType equals: (self classNamed: 'ClassWithTuples'). + self assert: variable isClassSide. + + variable := self attributeNamed: 'cvarTuple3'. + + self assert: variable class equals: FamixPythonAttribute. + self assert: variable name equals: 'cvarTuple3'. + self assert: variable parentType equals: (self classNamed: 'ClassWithTuples'). + self assert: variable isClassSide +] + { #category : 'tests - attributes' } FamixPythonProject1Test >> testClassVariablesWithSameNameButDifferenClass [