test/mavenparsertest.py
def testParentTagInheritance (self):
    """ test that inherits some attributes from parent tag (like group and version)
    """
    mvn = mavenparser.parseFile ('data/parent-tag-inheritance.xml')
    self.assertEquals (mvn.parent.id, 'org.mygroup.something:my-parent:v1.2')
    self.assertEquals (mvn.coord.id,  'org.mygroup.something:my-project:v1.2')
    self.assertEquals (mvn.deps.count(), 2)

    self.assertEquals (mvn.deps.getFlattenCoordIds(skipOptional = True), [
      'junit:junit:4.0-RELEASE'
    ])

    self.assertEquals (mvn.deps.getFlattenCoordIds(skipOptional = False), [
      'junit:junit:4.0-RELEASE',
      'org.mockito:mockito-all:1.9.5'
    ])
    return
 test that inherits some attributes from parent tag (like group and version)
    
test that inherits some attributes from parent tag (like group and version)
test that inherits some attributes from parent tag ( like group and version )
def testParentTagInheritance (self):
    mvn = mavenparser.parseFile ('data/parent-tag-inheritance.xml')
    self.assertEquals (mvn.parent.id, 'org.mygroup.something:my-parent:v1.2')
    self.assertEquals (mvn.coord.id,  'org.mygroup.something:my-project:v1.2')
    self.assertEquals (mvn.deps.count(), 2)
    self.assertEquals (mvn.deps.getFlattenCoordIds(skipOptional = True), [
      'junit:junit:4.0-RELEASE'
    ])
    self.assertEquals (mvn.deps.getFlattenCoordIds(skipOptional = False), [
      'junit:junit:4.0-RELEASE',
      'org.mockito:mockito-all:1.9.5'
    ])
    return
def testParentTagInheritance ( self ) : mvn = mavenparser . parseFile ( 'data/parent-tag-inheritance.xml' ) self . assertEquals ( mvn . parent . id , 'org.mygroup.something:my-parent:v1.2' ) self . assertEquals ( mvn . coord . id , 'org.mygroup.something:my-project:v1.2' ) self . assertEquals ( mvn . deps . count ( ) , 2 ) self . assertEquals ( mvn . deps . getFlattenCoordIds ( skipOptional = True ) , [ 'junit:junit:4.0-RELEASE' ] ) self . assertEquals ( mvn . deps . getFlattenCoordIds ( skipOptional = False ) , [ 'junit:junit:4.0-RELEASE' , 'org.mockito:mockito-all:1.9.5' ] ) return
test that inherits some attributes from parent tag (like group and version)
test that inherits some attributes from parent tag ( like group and version )
""" test that inherits some attributes from parent tag (like group and version)
    """
self