#NEWLINE# def test_context_checker_encoded_and_decoded( self ) : #NEWLINE# #INDENT# 'Ensure the _context_checker is correctly encoded to and decoded from\n        an Async options dict.\n        ' #NEWLINE# from furious.async import Async #NEWLINE# async_job = Async ( 'something' , _context_checker = dir ) #NEWLINE# encoded_async = async_job . to_dict ( ) #NEWLINE# self . assertEqual ( encoded_async [ '__context_checker' ] , 'dir' ) #NEWLINE# new_async_job = Async . from_dict ( self ) #NEWLINE# self . assertEqual ( new_async_job . get_options ( ) [ '_context_checker' ] , dir ) #NEWLINE# self . assertEqual ( async_job . to_dict ( ) , new_async_job . to_dict ( ) )