Skip to content

Commit

Permalink
Update tests to use Python 2.6-compatible methods.
Browse files Browse the repository at this point in the history
  • Loading branch information
gtback committed Jun 11, 2018
1 parent 156c4d7 commit ee5fa28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cybox/test/objects/email_message_test.py
Expand Up @@ -30,8 +30,8 @@ def test_list_of_dates_in_email_header(self):
hdr.date = [datetime.datetime.now(), datetime.datetime.now()]
hdr.date.condition = "Equals"
hdr_xml = hdr.to_xml()
self.assertIn(b'EmailMessageObj:Date condition="Equals"', hdr_xml)
self.assertIn(b"##comma##", hdr_xml)
self.assertTrue(b'EmailMessageObj:Date condition="Equals"' in hdr_xml)
self.assertTrue(b"##comma##" in hdr_xml)


class TestLinks(EntityTestCase, unittest.TestCase):
Expand Down

0 comments on commit ee5fa28

Please sign in to comment.