def METHOD_NAME(self, test_case):
    input_str, output, expected_error = test_case
    if not expected_error:
        self.assertEqual(output, list(utils.expand_braces(input_str)))
    else:
        with self.assertRaises(expected_error):
            utils.expand_braces(input_str)