-
Notifications
You must be signed in to change notification settings - Fork 561
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
54a26ed
commit c2c83e9
Showing
1 changed file
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,7 +50,17 @@ def check(self, module_test, events): | |
module_test.log.critical(e) | ||
assert len(events) == 8 | ||
assert 1 == len([e for e in events if e.type == "EMAIL_ADDRESS" and e.data == "[email protected]"]) | ||
assert 1 == len([e for e in events if e.type == "EMAIL_ADDRESS" and e.data == "[email protected]" and e.scope_distance == 1 and "affiliate" in e.tags] and e.source.data == "[email protected]") | ||
assert 1 == len( | ||
[ | ||
e | ||
for e in events | ||
if e.type == "EMAIL_ADDRESS" | ||
and e.data == "[email protected]" | ||
and e.scope_distance == 1 | ||
and "affiliate" in e.tags | ||
] | ||
and e.source.data == "[email protected]" | ||
) | ||
assert 1 == len([e for e in events if e.type == "EMAIL_ADDRESS" and e.data == "[email protected]"]) | ||
assert 1 == len( | ||
[ | ||
|