예제 #1
0
 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'
예제 #2
0
 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
예제 #3
0
 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'