def test_get_properties_single(self): test_loc = self.get_test_loc('maven2_props/single/pom.xml') pom = maven.MavenPom(test_loc) test = pom.properties expected = { 'artifactId': None, 'groupId': None, 'pkgGroupId': 'org.apache.axis', 'pom.artifactId': None, 'pom.groupId': None, 'pom.version': None, 'project.artifactId': None, 'project.groupId': None, 'project.version': None, 'version': None } assert expected == test
def test_MavenPom_simple_creation(self): test_loc = self.get_test_loc('maven_misc/mini-pom.xml') pom = maven.MavenPom(test_loc) assert pom.artifact_id == 'activemq-camel' # note: there has been no parent resolving yet assert pom.group_id == None