@mock.patch('uuid.uuid4', autospec=True)
    def test_generates_id(self, uuid_patch):
        from furious.async import Async

        id = 'random-id'
        uuid_patch.return_value.hex = id

        job = Async('somehting')

        self.assertEqual(job.id, id)
        self.assertEqual(job.get_options()['id'], id)
write module-level template code, i.e. that which
dataset/ETHPy150Open Workiva/furious/furious/tests/test_async.py/TestAsync.test_generates_id--crossover with--dataset/ETHPy150Open RoseOu/flasky/venv/lib/python2.7/site-packages/mako/codegen.py/_GenerateRenderMethod.write_module_code