Home
last modified time | relevance | path

Searched refs:scalar_field_name (Results 1 – 1 of 1) sorted by relevance

/external/protobuf/python/google/protobuf/internal/
Dreflection_test.py289 def TestCompositeHasBits(composite_field_name, scalar_field_name): argument
295 original_scalar_value = getattr(composite_field, scalar_field_name)
298 self.assertTrue(not composite_field.HasField(scalar_field_name))
306 setattr(composite_field, scalar_field_name, new_val)
307 self.assertEqual(new_val, getattr(composite_field, scalar_field_name))
311 self.assertTrue(composite_field.HasField(scalar_field_name))
319 self.assertTrue(not composite_field.HasField(scalar_field_name))
322 self.assertEqual(0, getattr(composite_field, scalar_field_name))
325 setattr(old_composite_field, scalar_field_name, new_val)
326 self.assertTrue(not composite_field.HasField(scalar_field_name))
[all …]