'Verifies an LbAttributes object.'

def _verify_attributes(self, attributes, attr_tests):

    for (attr, result) in attr_tests:
        attr_result = attributes
        for sub_attr in attr.split('.'):
            attr_result = getattr(attr_result, sub_attr, None)
        self.assertEqual(attr_result, result)
