def test_api_parameters(self): args = dict(name='foo', description='asdf asdf asdf', strategy='/Common/asdf') p = Parameters(args) assert p.name == 'foo' assert p.description == 'asdf asdf asdf' assert p.strategy == '/Common/asdf'
def test_module_parameters_none_strategy(self): args = dict(name='foo', description='asdf asdf asdf', password='******', server='localhost', user='******') p = Parameters(args) assert p.name == 'foo' assert p.description == 'asdf asdf asdf' assert p.strategy is None
def test_module_parameters_with_strategy_partition(self): args = dict(name='foo', description='asdf asdf asdf', password='******', server='localhost', strategy='/Common/foo', user='******', partition='Common') p = Parameters(args) assert p.name == 'foo' assert p.description == 'asdf asdf asdf' assert p.strategy == '/Common/foo'