def test_add_pk_no_orig(self): op = ops.CreatePrimaryKeyOp('pk1', 't', ['x', 'y']) pk = op.to_constraint() eq_(pk.name, 'pk1') eq_(pk.table.name, 't')
def test_add_pk_no_orig(self): op = ops.CreatePrimaryKeyOp("pk1", "t", ["x", "y"]) pk = op.to_constraint() eq_(pk.name, "pk1") eq_(pk.table.name, "t")