def assert_deb_content(test_case, expected_paths, package_path):
    output_dir = FilePath(test_case.mktemp())
    output_dir.makedirs()
    check_output(['dpkg', '--extract', package_path.path, output_dir.path])

    actual_paths = set()
    for f in output_dir.walk():
        if f.isdir():
            continue
        actual_paths.add(FilePath('/').descendant(f.segmentsFrom(output_dir)))

    test_case.assertEqual(expected_paths, actual_paths)
Fail unless the ``deb`` file at ``package_path`` contains all the
dataset/ETHPy150Open ClusterHQ/flocker/admin/test/test_packaging.py/assert_deb_content