mirror of
https://github.com/Security-Onion-Solutions/securityonion.git
synced 2025-12-06 01:02:46 +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)
|
||||
mock.assert_called_once()
|
||||
|
||||
def isInJson_string_found_in_dict(self):
|
||||
def test_isInJson_string_found_in_dict(self):
|
||||
test_string = "helo"
|
||||
input_json = {
|
||||
"value": "test",
|
||||
@@ -33,7 +33,7 @@ class TestMalwarebazaarMethods(unittest.TestCase):
|
||||
}
|
||||
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"
|
||||
input_json = {
|
||||
"value": "test",
|
||||
@@ -43,7 +43,7 @@ class TestMalwarebazaarMethods(unittest.TestCase):
|
||||
}
|
||||
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"
|
||||
input_json = {
|
||||
"value": "test",
|
||||
|
||||
Reference in New Issue
Block a user