Lines Matching refs:toplevel
828 toplevel = more_extensions_pb2.TopLevelMessage()
829 self.assertTrue(not toplevel.HasField('submessage'))
830 self.assertEqual(0, toplevel.submessage.Extensions[
832 self.assertTrue(not toplevel.HasField('submessage'))
833 toplevel.submessage.Extensions[
835 self.assertEqual(23, toplevel.submessage.Extensions[
837 self.assertTrue(toplevel.HasField('submessage'))
840 toplevel = more_extensions_pb2.TopLevelMessage()
841 self.assertTrue(not toplevel.HasField('submessage'))
842 self.assertEqual([], toplevel.submessage.Extensions[
844 self.assertTrue(not toplevel.HasField('submessage'))
845 toplevel.submessage.Extensions[
847 self.assertEqual([23], toplevel.submessage.Extensions[
849 self.assertTrue(toplevel.HasField('submessage'))
852 toplevel = more_extensions_pb2.TopLevelMessage()
853 self.assertTrue(not toplevel.HasField('submessage'))
854 self.assertEqual(0, toplevel.submessage.Extensions[
856 self.assertTrue(not toplevel.HasField('submessage'))
857 toplevel.submessage.Extensions[
859 self.assertEqual(23, toplevel.submessage.Extensions[
861 self.assertTrue(toplevel.HasField('submessage'))
864 toplevel = more_extensions_pb2.TopLevelMessage()
865 self.assertTrue(not toplevel.HasField('submessage'))
866 self.assertEqual(0, len(toplevel.submessage.Extensions[
868 self.assertTrue(not toplevel.HasField('submessage'))
869 foreign = toplevel.submessage.Extensions[
871 self.assertTrue(foreign is toplevel.submessage.Extensions[
873 self.assertTrue(toplevel.HasField('submessage'))
876 toplevel = more_extensions_pb2.TopLevelMessage()
877 extendee_proto = toplevel.submessage