def test_get_addresser(self):
    'Test that get_addresser returns the addresser class if it is a\n        user address, and None if it is of another address type'
    user_address = addresser.user.address(addresser.user.unique_id())
    other_address = addresser.role.address(addresser.role.unique_id())
    self.assertIsInstance(addresser.get_addresser(user_address), type(addresser.user))
    self.assertIsInstance(addresser.user.get_addresser(user_address), type(addresser.user))
    self.assertIsNone(addresser.user.get_addresser(other_address))
Test that get_addresser returns the addresser class if it is a
user address, and None if it is of another address type
def test_get_addresser(self):
    'Test that get_addresser returns the addresser class if it is a\n        user address, and None if it is of another address type'
    user_address = addresser.user.address(addresser.user.unique_id())
    other_address = addresser.role.address(addresser.role.unique_id())
    self.assertIsInstance(addresser.get_addresser(user_address), type(addresser.user))
    self.assertIsInstance(addresser.user.get_addresser(user_address), type(addresser.user))
    self.assertIsNone(addresser.user.get_addresser(other_address))