def METHOD_NAME(self, mocked_init):
    lm_jsrun = JSRUN('', {}, None, None, None)
    lm_jsrun._erf = True
    test_cases = setUp('lm', 'jsrun_erf')
    for test_case in test_cases:
        uid    = test_case[0]['uid']
        slots  = test_case[0]['slots']
        result = test_case[1]
        if result == 'AssertionError':
            with self.assertRaises(AssertionError):
                lm_jsrun._create_resource_set_file(
                    slots=slots, uid=uid, sandbox=self._sbox)
        else:
            rs_layout = test_case[2]
            rs_file = lm_jsrun._create_resource_set_file(
                slots=slots, uid=uid, sandbox=self._sbox)
            with ru.ru_open(rs_file) as rs_layout_file:
                self.assertEqual(rs_layout_file.readlines(), rs_layout)