def test_header(self): file_contents = messages.generate_messages_header(StringIO(_messages_file_contents)) self.assertGeneratedFileContentsEqual(file_contents, _expected_receiver_header) legacy_file_contents = messages.generate_messages_header(StringIO(_legacy_messages_file_contents)) self.assertGeneratedFileContentsEqual(legacy_file_contents, _expected_legacy_receiver_header) superclass_file_contents = messages.generate_messages_header(StringIO(_superclass_messages_file_contents)) self.assertGeneratedFileContentsEqual(superclass_file_contents, _expected_superclass_receiver_header)
def test_header(self): file_contents = messages.generate_messages_header( StringIO(_messages_file_contents)) self.assertGeneratedFileContentsEqual(file_contents, _expected_receiver_header) legacy_file_contents = messages.generate_messages_header( StringIO(_legacy_messages_file_contents)) self.assertGeneratedFileContentsEqual( legacy_file_contents, _expected_legacy_receiver_header) superclass_file_contents = messages.generate_messages_header( StringIO(_superclass_messages_file_contents)) self.assertGeneratedFileContentsEqual( superclass_file_contents, _expected_superclass_receiver_header)
def test_header(self): file_contents = messages.generate_messages_header(StringIO(_messages_file_contents)) self.assertGeneratedFileContentsEqual(file_contents, _expected_header)
def test_header(self): file_contents = messages.generate_messages_header( StringIO(_messages_file_contents)) self.assertGeneratedFileContentsEqual(file_contents, _expected_header)