def _read_spec_tests(path):
 b = common.read(path)
 u = unicode(b, encoding=FILE_ENCODING)
 spec_data = parse(u)
 tests = spec_data['tests']
 cases = []
 for data in tests:
  case = _deserialize_spec_test(data, path)
  cases.append(case)
 return cases

def _read_spec_tests ( path ) : b = common . read ( path ) u = unicode ( b , encoding = FILE_ENCODING ) spec_data = parse ( u ) tests = spec_data [ 'tests' ] cases = [ ] for data in tests : case = _deserialize_spec_test ( data , path ) cases . append ( case ) return cases
return a list of unittest .