Ejemplo n.º 1
0
    def test_run_lots_of_things(self):
        """The `-r` option can be used to specify multiple services.

        Multiple services are separated with commas. e.g. `-r foo,bar`.
        """
        self.assertEqual((['foo', 'bar'], []),
                         split_out_runlaunchpad_arguments(['-r', 'foo,bar']))
Ejemplo n.º 2
0
 def test_run_with_zope_params(self):
     """Any arguments after the initial `-r` option should be passed
     straight through to Zope.
     """
     self.assertEqual((['foo', 'bar'], ['-o', 'foo', '--bar=baz']),
                      split_out_runlaunchpad_arguments(
                          ['-r', 'foo,bar', '-o', 'foo', '--bar=baz']))
 def test_run_with_zope_params(self):
     """Any arguments after the initial `-r` option should be passed
     straight through to Zope.
     """
     self.assertEqual(
         (['foo', 'bar'], ['-o', 'foo', '--bar=baz']),
         split_out_runlaunchpad_arguments(['-r', 'foo,bar', '-o', 'foo',
                                           '--bar=baz']))
Ejemplo n.º 4
0
    def test_run_options(self):
        """Services to run are specified with an optional `-r` option.

        If a service is specified, it should appear as the first value in the
        returned tuple.
        """
        self.assertEqual((['foo'], []),
                         split_out_runlaunchpad_arguments(['-r', 'foo']))
    def test_run_lots_of_things(self):
        """The `-r` option can be used to specify multiple services.

        Multiple services are separated with commas. e.g. `-r foo,bar`.
        """
        self.assertEqual(
            (['foo', 'bar'], []),
            split_out_runlaunchpad_arguments(['-r', 'foo,bar']))
    def test_run_options(self):
        """Services to run are specified with an optional `-r` option.

        If a service is specified, it should appear as the first value in the
        returned tuple.
        """
        self.assertEqual(
            (['foo'], []), split_out_runlaunchpad_arguments(['-r', 'foo']))
Ejemplo n.º 7
0
 def test_run_with_only_zope_params(self):
     """Pass all the options to zope when the `-r` option is not given."""
     self.assertEqual(
         ([], ['-o', 'foo', '--bar=baz']),
         split_out_runlaunchpad_arguments(['-o', 'foo', '--bar=baz']))
Ejemplo n.º 8
0
 def test_no_parameter(self):
     """Given no arguments, return no services and no Zope arguments."""
     self.assertEqual(([], []), split_out_runlaunchpad_arguments([]))
 def test_run_with_only_zope_params(self):
     """Pass all the options to zope when the `-r` option is not given."""
     self.assertEqual(
         ([], ['-o', 'foo', '--bar=baz']),
         split_out_runlaunchpad_arguments(['-o', 'foo', '--bar=baz']))
Ejemplo n.º 10
0
 def test_no_parameter(self):
     """Given no arguments, return no services and no Zope arguments."""
     self.assertEqual(([], []), split_out_runlaunchpad_arguments([]))