def test_addresser_parse(self):
    'Test addresser.parse returns a parsed address'
    user_id = addresser.user.unique_id()
    user_address = addresser.user.address(user_id)
    parsed = addresser.parse(user_address)
    self.assertEqual(parsed.object_type, addresser.ObjectType.USER)
    self.assertEqual(parsed.related_type, addresser.ObjectType.NONE)
    self.assertEqual(parsed.relationship_type, addresser.RelationshipType.ATTRIBUTES)
    self.assertEqual(parsed.address_type, addresser.AddressSpace.USER)
    self.assertEqual(parsed.object_id, user_id)
    self.assertEqual(parsed.related_id, None)
Test addresser.parse returns a parsed address
def test_addresser_parse(self):
    
    user_id = addresser.user.unique_id()
    user_address = addresser.user.address(user_id)
    parsed = addresser.parse(user_address)
    self.assertEqual(parsed.object_type, addresser.ObjectType.USER)
    self.assertEqual(parsed.related_type, addresser.ObjectType.NONE)
    self.assertEqual(parsed.relationship_type, addresser.RelationshipType.ATTRIBUTES)
    self.assertEqual(parsed.address_type, addresser.AddressSpace.USER)
    self.assertEqual(parsed.object_id, user_id)
    self.assertEqual(parsed.related_id, None)