• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# -*- coding: utf-8 -*-
2# Protocol Buffers - Google's data interchange format
3# Copyright 2008 Google Inc.  All rights reserved.
4#
5# Use of this source code is governed by a BSD-style
6# license that can be found in the LICENSE file or at
7# https://developers.google.com/open-source/licenses/bsd
8
9"""Unittest for nested public imports."""
10
11import unittest
12
13from google.protobuf.internal.import_test_package import outer_pb2
14
15
16class ImportTest(unittest.TestCase):
17
18  def testPackageInitializationImport(self):
19    """Test that we can import nested import public messages."""
20
21    msg = outer_pb2.Outer()
22    self.assertEqual(58, msg.import_public_nested.value)
23
24
25if __name__ == '__main__':
26  unittest.main()
27