def test_check_auth_func_return_true_if_non_empty_response(self, query):
        query.return_value = '["something"]'

        self.assertTrue(check_auth_contactgroup_cmds("admin", "param"))
예제 #2
0
    def test_check_auth_func_return_true_if_non_empty_response(self, query):
        query.return_value = '["something"]'

        self.assertTrue(check_auth_contactgroup_cmds("admin","param"))
    def test_check_auth_func_return_false_if_empty_response(self, query):
        query.return_value = "[]"

        self.assertFalse(check_auth_contactgroup_cmds("admin", "param"))
예제 #4
0
    def test_check_auth_func_return_false_if_empty_response(self, query):
        query.return_value = "[]"

        self.assertFalse(check_auth_contactgroup_cmds("admin","param"))