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