Did I find the right examples for you? yes no

All Samples(3)  |  Call(2)  |  Derive(0)  |  Import(1)
Split the supplementary data out of parsed backend reasons.

Takes a dict from the output of parse_backend_reasons and splits out
the supplementary data into a set.

:return: (backend_to_reason_dict, set_of_supplementary_data)

        def split_supplement_data(data):
    """Split the supplementary data out of parsed backend reasons.

    Takes a dict from the output of parse_backend_reasons and splits out
    the supplementary data into a set.

    :return: (backend_to_reason_dict, set_of_supplementary_data)
    """
    core_data = {}
    supplements = set()
    for backend, (core, supplement) in data.items():
        core_data[backend] = core
        if supplement:
            supplements.add(supplement)
    return core_data, supplements
        


src/t/x/txpkgme-0.3/txpkgme/tests/test_nobackend.py   txpkgme(Download)
from testtools import TestCase
 
from txpkgme.nobackend import (
    gather_files_from_backend_reasons,
    gather_no_backend_data,
                     "['Makefile', 'README.markdown', 'etc', 'usr']"),
            }
        data, supplements = split_supplement_data(data)
        self.assertEqual(
            set(["['README.markdown', 'etc', 'Makefile', 'usr']",
        report = gather_no_backend_data(result)
        reasons, supplements = split_supplement_data(
            parse_backend_reasons(data))
        self.assertEqual(
            {'url': 'http://example.com/thing',