Searched refs:data_proto (Results 1 – 2 of 2) sorted by relevance
54 data_proto = PolicyData()55 data_proto.ParseFromString(response_proto.policy_data)56 ownership.assert_has_device_settings(data_proto)57 if owner: ownership.assert_username(data_proto, owner)60 settings.ParseFromString(data_proto.policy_value)95 data_proto = PolicyData()96 data_proto.policy_type = ownership.POLICY_TYPE97 if owner: data_proto.username = owner111 data_proto.policy_value = settings.SerializeToString()112 return data_proto.SerializeToString()
134 def assert_has_device_settings(data_proto): argument140 if (not data_proto.HasField("policy_type") or141 data_proto.policy_type != POLICY_TYPE or142 not data_proto.HasField("policy_value")):146 def assert_username(data_proto, username): argument153 if data_proto.username != username: