예제 #1
0
 def testProto2ContainsProto(self):
     pb = compare_test_pb2.Large()
     pb.string_ = 'abc'
     pb.float_ = 1.234
     pb.small.strings.append('xyz')
     pb2 = compare_test_pb2.Large()
     pb2.small.strings.append('xyz')
     compare.assertProto2Contains(self, pb2, pb)
예제 #2
0
 def testProto2ContainsProto(self):
   pb = compare_test_pb2.Large()
   pb.string_ = 'abc'
   pb.float_ = 1.234
   pb.small.strings.append('xyz')
   pb2 = compare_test_pb2.Large()
   pb2.small.strings.append('xyz')
   compare.assertProto2Contains(
       self, pb2, pb)
예제 #3
0
 def testProto2ContainsString(self):
     pb = compare_test_pb2.Large()
     pb.string_ = 'abc'
     pb.float_ = 1.234
     pb.small.strings.append('xyz')
     compare.assertProto2Contains(
         self, """
       small {
         strings: "xyz"
       }
     """, pb)
예제 #4
0
 def testProto2ContainsString(self):
   pb = compare_test_pb2.Large()
   pb.string_ = 'abc'
   pb.float_ = 1.234
   pb.small.strings.append('xyz')
   compare.assertProto2Contains(
       self,
       """
         small {
           strings: "xyz"
         }
       """,
       pb)