Пример #1
0
    def test_vuln_riskrule(self):
        client = ConnectApiClient()
        resp = client.get_vulnerability_riskrules()

        self.assertIsInstance(resp, list)
        self.assertEquals(
            set(resp[0].keys()),
            set([
                'name', 'description', 'count', 'criticality',
                'criticalityLabel'
            ]))
 def test_vuln_riskrule(self):
     client = ConnectApiClient()
     resp = client.get_vulnerability_riskrules()
     self.check_list(resp)