|
|
|
@ -33,8 +33,8 @@ |
|
|
|
|
import collections |
|
|
|
|
import unittest |
|
|
|
|
|
|
|
|
|
from google.protobuf import descriptor_pb2 # pylint: disable=g-import-not-at-top |
|
|
|
|
from google.protobuf import descriptor |
|
|
|
|
from google.protobuf import descriptor_pb2 |
|
|
|
|
from google.protobuf import descriptor_pool |
|
|
|
|
from google.protobuf import proto_builder |
|
|
|
|
from google.protobuf import text_format |
|
|
|
@ -43,6 +43,8 @@ from google.protobuf import text_format |
|
|
|
|
class ProtoBuilderTest(unittest.TestCase): |
|
|
|
|
|
|
|
|
|
def setUp(self): |
|
|
|
|
super().setUp() |
|
|
|
|
|
|
|
|
|
self.ordered_fields = collections.OrderedDict([ |
|
|
|
|
('foo', descriptor_pb2.FieldDescriptorProto.TYPE_INT64), |
|
|
|
|
('bar', descriptor_pb2.FieldDescriptorProto.TYPE_STRING), |
|
|
|
|