mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 17:22:49 +01:00
Update malwarebazaar_test.py
This commit is contained in:
@@ -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",
|
||||||
|
|||||||
Reference in New Issue
Block a user