def test_stress(line, expected, do_test_stress): """Test reading a particular line for parsing stress""" do_test_stress(line, vop.convert_vasp_outcar_stress(expected))
def test_convert_stress(stress, expected): """Test the stress conversion function""" assert np.allclose(vop.convert_vasp_outcar_stress(stress), expected)