コード例 #1
0
    def test_module_string_parameters(self):
        args = dict(delay='3',
                    timeout='500',
                    sleep='10',
                    msg='We timed out during waiting for BIG-IP :-(')

        p = Parameters(params=args)
        assert p.delay == 3
        assert p.timeout == 500
        assert p.sleep == 10
        assert p.msg == 'We timed out during waiting for BIG-IP :-('
コード例 #2
0
    def test_module_parameters(self):
        args = dict(type='standard',
                    delay=3,
                    timeout=500,
                    sleep=10,
                    msg='We timed out during waiting for BIG-IP :-(')

        p = Parameters(params=args)
        assert p.delay == 3
        assert p.timeout == 500
        assert p.sleep == 10
        assert p.msg == 'We timed out during waiting for BIG-IP :-('