def test_insert_row_bad_unit():
 t = QTable([([1] * u.m)])
 with pytest.raises(ValueError) as exc:
  t.insert_row(0, (((2 * u.m) / u.s),))
 assert ("'m / s' (speed) and 'm' (length) are not convertible" in str(exc.value))

def test_insert_row_bad_unit ( ) : t = QTable ( [ ( [ 1 ] * u . m ) ] ) with pytest . raises ( ValueError ) as exc : t . insert_row ( 0 , ( ( ( 2 * u . m ) / u . s ) , ) ) assert ( "'m / s' (speed) and 'm' (length) are not convertible" in str ( exc . value ) )
insert a row into a qtable with the wrong unit .