예제 #1
0
 def test_apk_parsing_filtered_empty_result(self):
     tests = DexParser.parse(TEST_APK, ["com.linkedin.mdctestNOT"])
     assert not list(tests)
예제 #2
0
 def test_apk_parsing(self):
     tests = DexParser.parse(TEST_APK)
     assert sorted(tests) == TestDexParsing.EXPECTED_TESTS
예제 #3
0
 def test_apk_parsing_filtered(self):
     tests = DexParser.parse(TEST_APK, ["com.linkedin.mdctest"])
     assert sorted(tests) == TestDexParsing.EXPECTED_TESTS
예제 #4
0
 def test_apk_parsing_filtered_regex(self):
     tests = DexParser.parse(TEST_APK, ["re::com\.linkedin\.mdct.st[s]*"])
     assert sorted(tests) == TestDexParsing.EXPECTED_TESTS