Beispiel #1
0
 def can_take_kwargs(self):
     c = Context()
     c.add_arg(names=('foo', 'bar'))
     assert c.has_arg('foo') and c.has_arg('bar')
Beispiel #2
0
 def returns_True_if_flag_is_valid_arg(self):
     c = Context()
     c.add_arg(Argument(names=('foo',)))
     eq_(c.has_arg('foo'), True)
Beispiel #3
0
 def can_take_name_arg(self):
     c = Context()
     c.add_arg('foo')
     assert c.has_arg('foo')