Example #1
0
    def test_get_tactic_url(self):
        tactics = MitreAttackTactic.get_all(self.mitre_conn)

        for tactic in tactics[:1]:
            url = tactic.get_url()
            assert url_get(url)
Example #2
0
 def test_get_all(self):
     assert len(MitreAttackTactic.get_all(
         self.mitre_attack)) == len(MitreQueryMocker.TACTICS[0]) + len(
             MitreQueryMocker.TACTICS[1]) + len(MitreQueryMocker.TACTICS[2])
Example #3
0
 def test_get_all_tactics_from_all_frameworks(self):
     tactics = MitreAttackTactic.get_all(self.mitre_conn)
     # As 8/5/19 there are 40 tactics
     assert len(tactics) >= 40