Example #1
0
    def test_conf_param_not_none(self):
        self.add_command(('lctl', 'conf_param', 'Rupert=1234'))

        set_conf_param(key='Rupert', value=1234)
        self.assertRanAllCommandsInOrder()
Example #2
0
    def test_conf_param_none(self):
        self.add_command(('lctl', 'conf_param', '-d', 'Edgar'))

        set_conf_param(key='Edgar', value=None)
        self.assertRanAllCommandsInOrder()
Example #3
0
    def test_conf_param_none_default(self):
        self.add_command(('lctl', 'conf_param', '-d', 'Edward'))

        set_conf_param(key='Edward')
        self.assertRanAllCommandsInOrder()
Example #4
0
    def test_conf_param_not_none_but_zero(self):
        self.add_command(('lctl', 'conf_param', 'Stanley=0'))

        set_conf_param(key='Stanley', value=0)
        self.assertRanAllCommandsInOrder()
Example #5
0
    def test_conf_param_not_none(self):
        self.add_command(("lctl", "conf_param", "Rupert=1234"))

        set_conf_param(key="Rupert", value=1234)
        self.assertRanAllCommandsInOrder()
Example #6
0
    def test_conf_param_none_default(self):
        self.add_command(("lctl", "conf_param", "-d", "Edward"))

        set_conf_param(key="Edward")
        self.assertRanAllCommandsInOrder()
Example #7
0
    def test_conf_param_none(self):
        self.add_command(("lctl", "conf_param", "-d", "Edgar"))

        set_conf_param(key="Edgar", value=None)
        self.assertRanAllCommandsInOrder()
Example #8
0
    def test_conf_param_not_none_but_zero(self):
        self.add_command(("lctl", "conf_param", "Stanley=0"))

        set_conf_param(key="Stanley", value=0)
        self.assertRanAllCommandsInOrder()