def test_delta_err(args, err_type): with pytest.raises(err_type): rdt.make_delta(*args)
def test_delta(args): act = pdt.timedelta(*args) exp = rdt.make_delta(*args) assert act == exp