def test_insert_row(mixin_cols):
 t = QTable(mixin_cols)
 t['m'].info.description = 'd'
 if isinstance(t['m'], (u.Quantity, Column)):
  t.insert_row(1, t[(-1)])
  assert (t[1] == t[(-1)])
  assert (t['m'].info.description == 'd')
 else:
  with pytest.raises(ValueError) as exc:
   t.insert_row(1, t[(-1)])
  assert ('Unable to insert row' in str(exc.value))

def test_insert_row ( mixin_cols ) : t = QTable ( mixin_cols ) t [ 'm' ] . info . description = 'd' if isinstance ( t [ 'm' ] , ( u . Quantity , Column ) ) : t . insert_row ( 1 , t [ ( - 1 ) ] ) assert ( t [ 1 ] == t [ ( - 1 ) ] ) assert ( t [ 'm' ] . info . description == 'd' ) else : with pytest . raises ( ValueError ) as exc : t . insert_row ( 1 , t [ ( - 1 ) ] ) assert ( 'Unable to insert row' in str ( exc . value ) )
test inserting a row .