def test_argument_printing(self, capsys):
     reset_to_default()
     max3(1, 2, 3)
     out, err = capsys.readouterr()
     expected_out = """max3:a=1,b=2,c=3\n"""
     assert out == expected_out
     assert err == ""
     max3(1, b=2, c=3)
     out, err = capsys.readouterr()
     assert out == expected_out
     assert err == ""
     max3(b=2, c=3, a=1)
     out, err = capsys.readouterr()
     assert out == expected_out
     assert err == ""
     max3(1, **{'b':2, 'c':3})
     out, err = capsys.readouterr()
     assert out == expected_out
     assert err == ""
     max3(1, b=2, c=3, d=10, e=12)
     out, err = capsys.readouterr()
     assert out == """max3:a=1,b=2,c=3,d=10,e=12\n"""
     assert err == ""
     max3(1, 2, 3, 10, 12)
     out, err = capsys.readouterr()
     assert out == """max3:a=1,b=2,c=3,=10,=12\n"""
     assert err == ""
    def test_depth_limiting(self, capsys):
        reset_to_default()
        fibbonaci(4)
        out, err = capsys.readouterr()
        assert out == """\
fibbonaci:number=4
    fibbonaci:number=3
        fibbonaci:number=2
        fibbonaci:number=1
    fibbonaci:number=2
        fibbonaci:number=1
        fibbonaci:number=0
"""
        assert err == ""