<s> import unittest <EOL> import pytest <EOL> from proto_lib_fixture import proto_lib <EOL> EmptyMessageWithNoFields = None <EOL> @ pytest . mark . usefixtures ( '<STR_LIT>' ) <EOL> class EmptyMessageTest ( unittest . TestCase ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> global EmptyMessageWithNoFields <EOL> from test_empty_message_proto import EmptyMessageWithNoFields <EOL> def setUp ( self ) : <EOL> self . message = EmptyMessageWithNoFields ( ) <EOL> def test_message_with_no_fields_parse_from_string ( self ) : <EOL> self . assertEqual ( <NUM_LIT:0> , self . message . ParseFromString ( "<STR_LIT>" ) ) <EOL> def test_message_with_no_fields_serialize_to_string ( self ) : <EOL> self . assertEqual ( "<STR_LIT>" , self . message . SerializeToString ( ) ) <EOL> def test_message_with_no_fields_serialize_to_json ( self ) : <EOL> self . assertEqual ( "<STR_LIT:{}>" , self . message . SerializeToJson ( ) ) <EOL> def test_message_with_no_fields_serialize_to_dict ( self ) : <EOL> self . assertEqual ( { } , self . message . SerializeToDict ( ) ) </s>
