Exemplo n.º 1
0
def test_merge_kwds_get_all_from_kwds():
     kwds = {"a": 1, "b": 2, "c": 3}
     std_kwds = {}
     assert {"a": 1, "b": 2, "c": 3} == DbusMethod.merge_kwds(kwds, std_kwds)
     
     std_kwds = {"a": 4, "b": 5, "c": 6}
     assert {"a": 1, "b": 2, "c": 3} == DbusMethod.merge_kwds(kwds, std_kwds)
Exemplo n.º 2
0
def test_merge_kwds_both_empty():
     kwds = {}
     std_kwds = {}
     assert {} == DbusMethod.merge_kwds(kwds, std_kwds)
Exemplo n.º 3
0
def test_merge_kwds_complete_with_std():
     kwds = {"a": 1, "b": 2}
     std_kwds = {"a": 4, "b": 5, "c": 6}
     assert {"a": 1, "b": 2, "c": 6} == DbusMethod.merge_kwds(kwds, std_kwds)
Exemplo n.º 4
0
def test_merge_kwds_get_all_from_std_kwd():
     kwds = {}
     std_kwds = {"a": 4, "b": 5, "c": 6}
     assert std_kwds == DbusMethod.merge_kwds(kwds, std_kwds)