In R, the car::linearHypothesis function can be used to test the hypothesis that two coefficients are equal (that their difference differs significantly from zero). Here's an example from its documentation:
linearHypothesis(mod.duncan, "income = education")
Per this CrossValidated answer this is also available in MATLAB as linhyptest.
Is there an equivalent for Python statsmodels regression models?