def test_simple_negative(): eq_( join_left( [{'a': 1, 'b': 2}], [{'a': 2, 'b': 3}], 'a'), [{'a': 1, 'b': 2}], "1 empty dictionary" )
def test_two_dict(): eq_( join_left( [{'a': 1, 'b': 2}], [{'a': 1, 'c': 3}, {'a': 1, 'c': 4}], 'a') , [ {'a': 1, 'b': 2, 'c': 3}, {'a': 1, 'b': 2, 'c': 4} ], "1 empty dictionary" )
def test_empty(): eq_(join_left([{}], [{}], 'a'), [{}], "2 empty dictionaries")
def test_second_empty(): eq_(join_left([{'a': 1}], [{}], 'a'), [{'a': 1}], "1 empty dictionary")