def METHOD_NAME(self):
    is_file = False
    file_type = "query-parser"
    if is_file:
        replace = file_type.replace("-", "_")
    else:
        replace = "".join(
            [i.title() for i in file_type.replace("-", "_").split("_")]
        )
    self.assertEqual(replace, "QueryParser")