Esempio n. 1
0
def test_resource_to_dict():
    resource = HashableDict(source=HashableDict(options=set(('a', 'b'))))
    out = execute._resource_to_dict(resource)
    assert type(out['source']['options']) == list
    assert type(out['source']) == dict
def test_hashable_dict_is_hashable():
    a = HashableDict(somevar='abc')
    hash(a)