<s> import unittest <EOL> from mixbox . vendor . six import u <EOL> from cybox . core import Event <EOL> from cybox . test import EntityTestCase <EOL> class TestEvent ( EntityTestCase , unittest . TestCase ) : <EOL> klass = Event <EOL> _full_dict = { <EOL> '<STR_LIT:id>' : "<STR_LIT>" , <EOL> '<STR_LIT>' : "<STR_LIT>" , <EOL> '<STR_LIT:type>' : u ( "<STR_LIT>" ) , <EOL> '<STR_LIT:description>' : u ( "<STR_LIT>" ) , <EOL> '<STR_LIT>' : { '<STR_LIT:class>' : "<STR_LIT>" } , <EOL> '<STR_LIT>' : { '<STR_LIT>' : <NUM_LIT:1.0> } , <EOL> '<STR_LIT>' : [ <EOL> { '<STR_LIT>' : "<STR_LIT>" } , <EOL> { '<STR_LIT>' : "<STR_LIT>" } , <EOL> ] , <EOL> '<STR_LIT>' : [ <EOL> { '<STR_LIT>' : "<STR_LIT>" } , <EOL> { '<STR_LIT>' : "<STR_LIT>" } , <EOL> ] <EOL> } <EOL> def test_empty_recursive_event ( self ) : <EOL> e = Event ( ) <EOL> e . description = "<STR_LIT>" <EOL> e . event = None <EOL> self . assertTrue ( b"<STR_LIT>" in e . to_xml ( ) ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> unittest . main ( ) </s>
