コード例 #1
0
    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)
コード例 #2
0
    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)
コード例 #3
0
 def test_header(self):
     file_contents = messages.generate_messages_header(StringIO(_messages_file_contents))
     self.assertGeneratedFileContentsEqual(file_contents, _expected_header)
コード例 #4
0
 def test_header(self):
     file_contents = messages.generate_messages_header(
         StringIO(_messages_file_contents))
     self.assertGeneratedFileContentsEqual(file_contents, _expected_header)