withpytest.warns(RuntimeWarning,match=r'The dsi string contains more than one \\per, does not match specs! Given string: \\metre\\per\\metre\\per\\metre'):
withpytest.warns(RuntimeWarning,match=r'The dsi string contains more than one \\per, does not match specs! Given string: \\metre\\per\\metre\\per\\metre'):
assertdsiTree(r'\metre').toLatex(wrapper='$',prefix=r'\mathrm{Unit: }',suffix=r'\mathrm{(generated from D-SI string)}')==r'$\mathrm{Unit: }\mathrm{m}\mathrm{(generated from D-SI string)}$'