def METHOD_NAME(self):
    """Test Error if dwell and peck"""
    v1 = FreeCAD.Vector(0, 0, 10)
    v2 = FreeCAD.Vector(0, 0, 0)
    e = Part.makeLine(v1, v2)
    # dwelltime should be a float
    args = {"edge": e, "dwelltime": 1.0, "peckdepth": 1.0}
    self.assertRaises(ValueError, generator.generate, **args)