def test_addresses_are(self):
    'Test that addresses_are returns True if all addresses are a user\n        addresses, and False if any addresses are if a different address type'
    user_address1 = addresser.user.address(addresser.user.unique_id())
    user_address2 = addresser.user.address(addresser.user.unique_id())
    other_address = addresser.role.address(addresser.role.unique_id())
    self.assertTrue(addresser.user.addresses_are([user_address1]))
    self.assertTrue(addresser.user.addresses_are([user_address1, user_address2]))
    self.assertFalse(addresser.user.addresses_are([other_address]))
    self.assertFalse(addresser.user.addresses_are([user_address1, other_address]))
    self.assertFalse(addresser.user.addresses_are([other_address, user_address1]))
    self.assertTrue(addresser.user.addresses_are([]))
Test that addresses_are returns True if all addresses are a user
addresses, and False if any addresses are if a different address type
def test_addresses_are(self):
    'Test that addresses_are returns True if all addresses are a user\n        addresses, and False if any addresses are if a different address type'
    user_address1 = addresser.user.address(addresser.user.unique_id())
    user_address2 = addresser.user.address(addresser.user.unique_id())
    other_address = addresser.role.address(addresser.role.unique_id())
    self.assertTrue(addresser.user.addresses_are([user_address1]))
    self.assertTrue(addresser.user.addresses_are([user_address1, user_address2]))
    self.assertFalse(addresser.user.addresses_are([other_address]))
    self.assertFalse(addresser.user.addresses_are([user_address1, other_address]))
    self.assertFalse(addresser.user.addresses_are([other_address, user_address1]))
    self.assertTrue(addresser.user.addresses_are([]))