Update malwarebazaar_test.py

This commit is contained in:
Ryan Hoang
2023-12-18 19:27:13 -05:00
committed by GitHub
parent a561f8c783
commit 748a67314f

View File

@@ -23,7 +23,7 @@ class TestMalwarebazaarMethods(unittest.TestCase):
self.assertEqual(mock_cmd.getvalue(), expected) self.assertEqual(mock_cmd.getvalue(), expected)
mock.assert_called_once() mock.assert_called_once()
def isInJson_string_found_in_dict(self): def test_isInJson_string_found_in_dict(self):
test_string = "helo" test_string = "helo"
input_json = { input_json = {
"value": "test", "value": "test",
@@ -33,7 +33,7 @@ class TestMalwarebazaarMethods(unittest.TestCase):
} }
self.assertEqual(malwarebazaar.isInJson(input_json, test_string), True) self.assertEqual(malwarebazaar.isInJson(input_json, test_string), True)
def isInJson_string_found_in_arr(self): def test_isInJson_string_found_in_arr(self):
test_string = "helo" test_string = "helo"
input_json = { input_json = {
"value": "test", "value": "test",
@@ -43,7 +43,7 @@ class TestMalwarebazaarMethods(unittest.TestCase):
} }
self.assertEqual(malwarebazaar.isInJson(input_json, test_string), True) self.assertEqual(malwarebazaar.isInJson(input_json, test_string), True)
def isInJson_string_not_found(self): def test_isInJson_string_not_found(self):
test_string = "ValNotInJSON" test_string = "ValNotInJSON"
input_json = { input_json = {
"value": "test", "value": "test",