Ejemplo n.º 1
0
def test_fix_cwe_invalid_string():
    assert fix_cwe("something_really_strange") == ""
Ejemplo n.º 2
0
def test_fix_cwe_valid_string():
    assert fix_cwe("[CWE467] (Use of sizeof on a Pointer Type)") == "467"
Ejemplo n.º 3
0
 def test_fix_cwe_invalid_string(self):
     self.assertEqual(fix_cwe("something_really_strange"), "")
Ejemplo n.º 4
0
 def test_fix_cwe_valid_string(self):
     self.assertEqual(fix_cwe("[CWE467] (Use of sizeof on a Pointer Type)"),
                      "467")
Ejemplo n.º 5
0
def test_fix_cwe_invalid_string():
    assert fix_cwe('something_really_strange') == ''
Ejemplo n.º 6
0
def test_fix_cwe_valid_string():
    assert fix_cwe('[CWE467] (Use of sizeof on a Pointer Type)') == '467'