def test_drop_unique_constraint(self): schema_obj = schemaobj.SchemaObjects() const = schema_obj.unique_constraint('x', 'foobar', ['a']) op = ops.DropConstraintOp.from_constraint(const) is_( op.to_constraint(), const )
def test_drop_unique_constraint(self): schema_obj = schemaobj.SchemaObjects() const = schema_obj.unique_constraint("x", "foobar", ["a"]) op = ops.DropConstraintOp.from_constraint(const) is_(op.to_constraint(), const)
def test_drop_unique_constraint(self): schema_obj = schemaobj.SchemaObjects() const = schema_obj.unique_constraint('x', 'foobar', ['a']) op = ops.DropConstraintOp.from_constraint(const) is_(op.to_constraint(), const)
def test_create_unique_constraint(self): schema_obj = schemaobj.SchemaObjects() const = schema_obj.unique_constraint("x", "foobar", ["a"]) op = ops.AddConstraintOp.from_constraint(const) is_not_(op.to_constraint(), const)