forked from p15670423/monkey
Fixed unit test that gets mitigations from API
This commit is contained in:
parent
f6782b72fa
commit
483a3576d4
|
@ -7,8 +7,8 @@ class TestMitreApiInterface(TestCase):
|
||||||
|
|
||||||
def test_get_all_mitigations(self):
|
def test_get_all_mitigations(self):
|
||||||
mitigations = MitreApiInterface.get_all_mitigations()
|
mitigations = MitreApiInterface.get_all_mitigations()
|
||||||
self.assertTrue((len(mitigations) >= 282))
|
self.assertTrue((len(mitigations.items()) >= 282))
|
||||||
mitigation = mitigations[0]
|
mitigation = next(iter(mitigations.values()))
|
||||||
self.assertEqual(mitigation['type'], "course-of-action")
|
self.assertEqual(mitigation['type'], "course-of-action")
|
||||||
self.assertTrue(mitigation['name'])
|
self.assertTrue(mitigation['name'])
|
||||||
self.assertTrue(mitigation['description'])
|
self.assertTrue(mitigation['description'])
|
||||||
|
|
Loading…
Reference in New Issue