@classmethod
  def parse_manifest(cls, manifest_path):
    try:
      manifest = XmlParser.from_file(manifest_path)
      package_name = manifest.get_attribute('manifest', 'package')
    except XmlParser.XmlError as e:
      raise cls.BadManifestError("AndroidManifest.xml parsing error: {}".format(e))
    target_sdk = manifest.get_optional_attribute('uses-sdk', 'android:targetSdkVersion')

    return AndroidManifest(manifest.xml_path, target_sdk, package_name)
Testing GeoQuerySet.force_rhr().
dataset/ETHPy150Open pantsbuild/pants/contrib/android/src/python/pants/contrib/android/android_manifest_parser.py/AndroidManifestParser.parse_manifest--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.5/django/contrib/gis/tests/geoapp/tests.py/GeoQuerySetTest.test_force_rhr