# Path: xudd/tools.py
# def base64_uuid4():
# def is_qualified_id(actor_id):
# def split_id(actor_id):
# def join_id(actor_id, hive, assert_not_qualified=True):
# def possibly_qualify_id(actor_id, hive_id):
# def import_component(import_string):


from xudd import tools
import mock


class FakeUUID(object):
    bytes = b'\x05\x8f8\x83\x93mI`\xab\xa1\x96N\xbb\x1fE\x84'

UUID_MOCK = mock.Mock(return_value=FakeUUID())


@mock.patch('uuid.uuid4', UUID_MOCK)
def test_base64_unicode():

# Path: xudd/tools.py
# def base64_uuid4():
# def is_qualified_id(actor_id):
# def split_id(actor_id):
# def join_id(actor_id, hive, assert_not_qualified=True):
# def possibly_qualify_id(actor_id, hive_id):
# def import_component(import_string):


# Path: xudd/tests/test_tools.py
from xudd import tools
import mock



class FakeUUID(object):
    bytes = b'\x05\x8f8\x83\x93mI`\xab\xa1\x96N\xbb\x1fE\x84'

UUID_MOCK = mock.Mock(return_value=FakeUUID())


@mock.patch('uuid.uuid4', UUID_MOCK)
def test_base64_unicode():

    assert tools.base64_uuid4() == u"BY84g5NtSWCroZZOux9FhA"