def _deserialize_spec_test(data, file_path):
 context = data['data']
 description = data['desc']
 expected = unicode(data['expected'])
 partials = ((data.has_key('partials') and data['partials']) or {})
 template = data['template']
 test_name = data['name']
 _convert_children(context)
 test_case = _make_spec_test(expected, template, context, partials, description, test_name, file_path)
 return test_case

def _deserialize_spec_test ( data , file_path ) : context = data [ 'data' ] description = data [ 'desc' ] expected = unicode ( data [ 'expected' ] ) partials = ( ( data . has_key ( 'partials' ) and data [ 'partials' ] ) or { } ) template = data [ 'template' ] test_name = data [ 'name' ] _convert_children ( context ) test_case = _make_spec_test ( expected , template , context , partials , description , test_name , file_path ) return test_case
return a unittest .