def _test_gauge_delta(cl, proto):
    tests = (
        (12, '+12'),
        (-13, '-13'),
        (1.2, '+1.2'),
        (-1.3, '-1.3'),
    )

    def _check(num, result):
        cl._sock.reset_mock()
        cl.gauge('foo', num, delta=True)
        _sock_check(cl._sock, 1, proto, result % 'foo:%s|g')

    for num, result in tests:
        _check(num, result)
dataset/ETHPy150Open jsocol/pystatsd/statsd/tests.py/_test_gauge_delta/swapped operands of `%`