'``FlockerScriptRunner._parse_options`` accepts a list of arguments,
passes them to the `parseOptions` method of its ``options`` attribute
and returns the populated options instance.'

def test_parse_options(self):

    class OptionsSpy(usage.Options, ):
        def parseOptions(self, arguments):
            self.parseOptionsArguments = arguments
    expectedArguments = [object(), object()]
    runner = FlockerScriptRunner(script=None, options=OptionsSpy())
    options = runner._parse_options(expectedArguments)
    self.assertEqual(expectedArguments, options.parseOptionsArguments)
