Beispiel #1
0
 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
     )
Beispiel #2
0
 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)
Beispiel #3
0
 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)
Beispiel #4
0
 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)
Beispiel #5
0
 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)