def test_affected_testfiles():
    manifest_json = {'items': {'crashtest': {'a': {'b': {'c': {'foo-crash.html': ['acdefgh123456', ['null', {}]]}}}}}, 'url_base': '/', 'version': 8}
    manifest = Manifest.from_json('/', manifest_json)
    with patch('tools.wpt.testfiles.load_manifest', return_value=manifest):
        full_test_path = os.path.join(testfiles.wpt_root, 'a', 'b', 'c', 'foo-crash.html')
        (tests_changed, _) = testfiles.affected_testfiles([full_test_path])
        assert (tests_changed == {full_test_path})
def test_affected_testfiles():
    manifest_json = {'items': {'crashtest': {'a': {'b': {'c': {'foo-crash.html': ['acdefgh123456', ['null', {}]]}}}}}, 'url_base': '/', 'version': 8}
    manifest = Manifest.from_json('/', manifest_json)
    with patch('tools.wpt.testfiles.load_manifest', return_value=manifest):
        full_test_path = os.path.join(testfiles.wpt_root, 'a', 'b', 'c', 'foo-crash.html')
        (tests_changed, _) = testfiles.affected_testfiles([full_test_path])
        assert (tests_changed == {full_test_path})