Exemple #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)
 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)
Exemple #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)
 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)