Skip to content

Commit

Permalink
Replace more assertDictContainsSubset
Browse files Browse the repository at this point in the history
  • Loading branch information
jsoriano committed Sep 4, 2020
1 parent 374b0a7 commit 7eb03a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions winlogbeat/tests/system/winlogbeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ def assert_common_fields(self, evt, msg=None, eventID=10, sid=None,
assert "message" not in evt
else:
self.assertEqual(evt["message"], msg)
self.assertDictContainsSubset({"winlog.event_data.param1": msg}, evt)
self.assertEqual(msg, evt.get("winlog.event_data.param1"))

if sid is None:
self.assertEqual(evt["winlog.user.identifier"], self.get_sid_string())
Expand All @@ -158,7 +158,7 @@ def assert_common_fields(self, evt, msg=None, eventID=10, sid=None,
assert "winlog.user.type" not in evt

if extra is not None:
self.assertDictContainsSubset(extra, evt)
assert extra.items() <= evt.items()


def host_name(fqdn):
Expand Down

0 comments on commit 7eb03a7

Please sign in to comment.