def METHOD_NAME(self):
    """Check that object parameters are assigned the correct python class"""
    c = espressomd.constraints.ShapeBasedConstraint()
    w = espressomd.shapes.Wall(normal=[-1, 0, 0])
    c.shape = w
    # Does the shape parameter return the correct class
    self.assertEqual(c.shape.__class__, espressomd.shapes.Wall)
    # Does the script object match
    self.assertEqual(c.shape, w)
    # Different shape
    c.shape = espressomd.shapes.Sphere(radius=1)
    # Test class
    self.assertEqual(c.shape.__class__, espressomd.shapes.Sphere)
    # Test parameter retrieval
    self.assertAlmostEqual(c.shape.radius, 1, places=8)