# Path: oppy/util/tools.py
# def decodeMicrodescriptorIdentifier(microdescriptor):
# def enum(**enums):
# def shutdown(circuit_manager):
# def ctr(upper):


import mock
from twisted.trial import unittest
from oppy.util import tools




class ToolsTest(unittest.TestCase):
    
    @mock.patch('base64.b64decode', return_value='ret')
    def test_decodeMicrodescriptorIdentifier_pad4(self, mock_b64d):
        md = mock.Mock()
        md.identifier = 'test'

# Path: oppy/util/tools.py
# def decodeMicrodescriptorIdentifier(microdescriptor):
# def enum(**enums):
# def shutdown(circuit_manager):
# def ctr(upper):


# Path: oppy/tests/unit/util/test_tools.py
import mock
from twisted.trial import unittest
from oppy.util import tools





class ToolsTest(unittest.TestCase):
    
    @mock.patch('base64.b64decode', return_value='ret')
    def test_decodeMicrodescriptorIdentifier_pad4(self, mock_b64d):
        md = mock.Mock()
        md.identifier = 'test'

        ret = tools.decodeMicrodescriptorIdentifier(md)