Skip to content

Commit

Permalink
Fix failing test.
Browse files Browse the repository at this point in the history
Because the EntityList constructor now accepts any iterable sequence, a
dictionary with string keys uses the key as the value to be added. Since
'a' is a valid value to construct an EmailAddress, this stopped raising
an error, thus making this test fail.
  • Loading branch information
gtback committed Jul 10, 2015
1 parent 6316ca2 commit 6596c90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cybox/test/objects/email_message_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ def _compare(self, recips):
def test_invalid_recip_type(self):
ipv4 = Address("1.2.3.4", Address.CAT_IPV4)
generic_address = Address("aaaa")
for a in [dict(a=1), 1, True, [1], ipv4, generic_address]:
for a in [{1: 'a'}, 1, True, [1], ipv4, generic_address]:
self.assertRaises(ValueError, EmailRecipients, a)


Expand Down

0 comments on commit 6596c90

Please sign in to comment.