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.py299 def TestCompositeHasBits(composite_field_name, scalar_field_name): argument
305 original_scalar_value = getattr(composite_field, scalar_field_name)
308 self.assertTrue(not composite_field.HasField(scalar_field_name))
316 setattr(composite_field, scalar_field_name, new_val)
317 self.assertEqual(new_val, getattr(composite_field, scalar_field_name))
321 self.assertTrue(composite_field.HasField(scalar_field_name))
329 self.assertTrue(not composite_field.HasField(scalar_field_name))
332 self.assertEqual(0, getattr(composite_field, scalar_field_name))
335 setattr(old_composite_field, scalar_field_name, new_val)
336 self.assertTrue(not composite_field.HasField(scalar_field_name))
[all …]