def test_fix_cwe_invalid_string(): assert fix_cwe("something_really_strange") == ""
def test_fix_cwe_valid_string(): assert fix_cwe("[CWE467] (Use of sizeof on a Pointer Type)") == "467"
def test_fix_cwe_invalid_string(self): self.assertEqual(fix_cwe("something_really_strange"), "")
def test_fix_cwe_valid_string(self): self.assertEqual(fix_cwe("[CWE467] (Use of sizeof on a Pointer Type)"), "467")
def test_fix_cwe_invalid_string(): assert fix_cwe('something_really_strange') == ''
def test_fix_cwe_valid_string(): assert fix_cwe('[CWE467] (Use of sizeof on a Pointer Type)') == '467'