def can_take_Argument_instance(self): c = Context() a = Argument(names=('foo',)) c.add_arg(a) assert c.get_arg('foo') is a
def returns_Argument_for_given_name(self): c = Context() a = Argument(name='foo') c.add_arg(a) assert c.get_arg('foo') is a
def may_give_arg_list_at_init_time(self): a1 = Argument('foo') a2 = Argument('bar') c = Context(name='name', args=(a1, a2)) assert c.get_arg('foo') is a1