def test_dictjoin():
    """This test function can be used for testing dictjoin with py.test of
    nosetests."""
    def dictjointest(_dict, expected):
        assert dictjoin(_dict, '=', '; ') == expected

    yield dictjointest, {}, ''
    yield dictjointest, dict(a=1), 'a=1'
    yield dictjointest, dict(a=1, b=2), 'a=1; b=2'
This test function can be used for testing dictjoin with py.test of
    nosetests.
recipes/Python/573453_String_representatidict_sorted/recipe-573453.py