#NEWLINE# def test_manifest_parse_with_bad_target( self ) : #NEWLINE# #INDENT# f = FileMock ( '<manifest \n  xmlns:android="http://schemas.android.com/apk/res/android"\n  package="com.google.fpl.libfplutil_test">\n  <uses-sdk android:minSdkVersion="1"             android:targetSdkVersion="-2"/>\n  <application>\n    <activity android:name="android.app.NativeActivity">\n      <meta-data android:name="android.app.lib_name"\n                 android:value="test"/>\n      <intent-filter>\n       <action android:name="android.intent.action.MAIN"/>\n       <category android:name="android.intent.category.LAUNCHER"/>\n      </intent-filter>\n    </activity>\n  </application>\n</manifest>' ) #NEWLINE# m = android . AndroidManifest ( None ) #NEWLINE# m . _parse ( f ) #NEWLINE# self . assertEqual ( m . min_sdk , 1 ) #NEWLINE# self . assertEqual ( m . target_sdk , ( - 2 ) )