def _make_spec_test(expected, template, context, partials, description, test_name, file_path):
 file_name = os.path.basename(file_path)
 test_method_name = ('Mustache spec (%s): %s' % (file_name, repr(test_name)))
 class SpecTest(SpecTestBase, ):
  pass
 def run_test(self):
  self._runTest()
 setattr(SpecTest, test_method_name, run_test)
 case = SpecTest(test_method_name)
 case._context = context
 case._description = description
 case._expected = expected
 case._file_path = file_path
 case._partials = partials
 case._template = template
 case._test_name = test_name
 return case

def _make_spec_test ( expected , template , context , partials , description , test_name , file_path ) : file_name = os . path . basename ( file_path ) test_method_name = ( 'Mustache spec (%s): %s' % ( file_name , repr ( test_name ) ) ) class SpecTest ( SpecTestBase , ) : pass def run_test ( self ) : self . _runTest ( ) setattr ( SpecTest , test_method_name , run_test ) case = SpecTest ( test_method_name ) case . _context = context case . _description = description case . _expected = expected case . _file_path = file_path case . _partials = partials case . _template = template case . _test_name = test_name return case
return a unittest .