Lines Matching refs:toplevel
1186 toplevel = more_extensions_pb2.TopLevelMessage()
1187 self.assertTrue(not toplevel.HasField('submessage'))
1188 self.assertEqual(0, toplevel.submessage.Extensions[
1190 self.assertTrue(not toplevel.HasField('submessage'))
1191 toplevel.submessage.Extensions[
1193 self.assertEqual(23, toplevel.submessage.Extensions[
1195 self.assertTrue(toplevel.HasField('submessage'))
1198 toplevel = more_extensions_pb2.TopLevelMessage()
1199 self.assertTrue(not toplevel.HasField('submessage'))
1200 self.assertEqual([], toplevel.submessage.Extensions[
1202 self.assertTrue(not toplevel.HasField('submessage'))
1203 toplevel.submessage.Extensions[
1205 self.assertEqual([23], toplevel.submessage.Extensions[
1207 self.assertTrue(toplevel.HasField('submessage'))
1210 toplevel = more_extensions_pb2.TopLevelMessage()
1211 self.assertTrue(not toplevel.HasField('submessage'))
1212 self.assertEqual(0, toplevel.submessage.Extensions[
1214 self.assertTrue(not toplevel.HasField('submessage'))
1215 toplevel.submessage.Extensions[
1217 self.assertEqual(23, toplevel.submessage.Extensions[
1219 self.assertTrue(toplevel.HasField('submessage'))
1222 toplevel = more_extensions_pb2.TopLevelMessage()
1223 self.assertTrue(not toplevel.HasField('submessage'))
1224 self.assertEqual(0, len(toplevel.submessage.Extensions[
1226 self.assertTrue(not toplevel.HasField('submessage'))
1227 foreign = toplevel.submessage.Extensions[
1229 self.assertEqual(foreign, toplevel.submessage.Extensions[
1231 self.assertTrue(toplevel.HasField('submessage'))
1234 toplevel = more_extensions_pb2.TopLevelMessage()
1235 extendee_proto = toplevel.submessage