old_contents: from spec import Spec, skip, ok_, eq_, raises
  
  from invoke.parser import Parser, Context, Argument
  from invoke.collection import Collection
  
  
  class Parser_(Spec):
      def can_take_initial_context(self):
          c = Context()
          p = Parser(initial=c)
          eq_(p.initial, c)
  
      def can_take_initial_and_other_contexts(self):
          c1 = Context('foo')
          c2 = Context('bar')
          p = Parser(initial=Context(), contexts=[c1, c2])
          eq_(p.contexts['foo'], c1)
          eq_(p.contexts['bar'], c2)
  
      def can_take_just_other_contexts(self):
          c = Context('foo')
          p = Parser(contexts=[c])
          eq_(p.contexts['foo'], c)
  
      @raises(ValueError)
      def raises_ValueError_for_unnamed_Contexts_in_contexts(self):
          Parser(initial=Context(), contexts=[Context()])
  
      class parse_argv:
          def parses_sys_argv_style_list_of_strings(self):
              "parses sys.argv-style list of strings"
              # Doesn't-blow-up tests FTL
              mytask = Context(name='mytask')
              mytask.add_arg('--arg')
              p = Parser(contexts=[mytask])
              p.parse_argv(['mytask', '--arg'])
  
          def returns_ordered_list_of_tasks_and_their_args(self):
              skip()
  
          def returns_remainder(self):
              "returns -- style remainder string chunk"
              skip()
  
new_contents: from spec import Spec, skip, ok_, eq_, raises
  
  from invoke.parser import Parser, Context, Argument
  from invoke.collection import Collection
  
  
  class Parser_(Spec):
      def can_take_initial_context(self):
          c = Context()
          p = Parser(initial=c)
          eq_(p.initial, c)
  
      def can_take_initial_and_other_contexts(self):
          c1 = Context('foo')
          c2 = Context('bar')
          p = Parser(initial=Context(), contexts=[c1, c2])
          eq_(p.contexts['foo'], c1)
          eq_(p.contexts['bar'], c2)
  
      def can_take_just_other_contexts(self):
          c = Context('foo')
          p = Parser(contexts=[c])
          eq_(p.contexts['foo'], c)
  
      @raises(ValueError)
      def raises_ValueError_for_unnamed_Contexts_in_contexts(self):
          Parser(initial=Context(), contexts=[Context()])
  
      @raises(ValueError)
      def raises_error_for_context_name_clashes(self):
          skip()
  
      @raises(ValueError)
      def raises_error_for_context_alias_and_name_clashes(self):
          skip()
  
      class parse_argv:
          def parses_sys_argv_style_list_of_strings(self):
              "parses sys.argv-style list of strings"
              # Doesn't-blow-up tests FTL
              mytask = Context(name='mytask')
              mytask.add_arg('--arg')
              p = Parser(contexts=[mytask])
              p.parse_argv(['mytask', '--arg'])
  
          def returns_only_contexts_mentioned(self):
              skip()
  
          def returned_contexts_are_in_order_given(self):
              skip()
  
          def returned_context_member_arguments_contain_given_values(self):
              skip()
  
          def returned_arguments_not_given_contain_default_values(self):
              skip()
  
          def returns_remainder(self):
              "returns -- style remainder string chunk"
              skip()
  
subject: Add more stub tests