MCPcopy Create free account
hub / github.com/pyinvoke/invoke / can_clone_into_a_subclass

Method can_clone_into_a_subclass

tests/task.py:549–557  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

547 assert clone == orig
548
549 def can_clone_into_a_subclass(self):
550 orig = Call(self.task)
551
552 class MyCall(Call):
553 pass
554
555 clone = orig.clone(into=MyCall)
556 assert clone == orig
557 assert isinstance(clone, MyCall)
558
559 def can_be_given_extra_kwargs_to_clone_with(self):
560 orig = Call(self.task)

Callers

nothing calls this directly

Calls 2

cloneMethod · 0.95
CallClass · 0.90

Tested by

no test coverage detected