Exemplo n.º 1
0
def test_wizard_unsupported_properties():
    data = {
        'colors': {
            'foo': '#111111',
            'baa': '#222222',
            'extracolor': 'rgb(1,2,3,0)',
        },
        'images': {
            'theme_frame': 'png.png',
            'additionalBackground': 'somethingelse.png',
        },
        'extrathing': {
            'doesnt': 'matter',
        },
    }
    fields = ['foo', 'baa']
    properties = utils.wizard_unsupported_properties(data, fields)
    assert properties == ['extrathing', 'extracolor', 'additionalBackground']
Exemplo n.º 2
0
def test_wizard_unsupported_properties():
    data = {
        'colors': {
            'foo': '#111111',
            'baa': '#222222',
            'extracolor': 'rgb(1,2,3,0)',
        },
        'images': {
            'theme_frame': 'png.png',
            'additionalBackground': 'somethingelse.png',
        },
        'extrathing': {
            'doesnt': 'matter',
        },
    }
    fields = ['foo', 'baa']
    properties = utils.wizard_unsupported_properties(
        data, fields)
    assert properties == ['extrathing', 'extracolor', 'additionalBackground']