'Creates a choice element for a choictextproblem.
Defaults to a correct choice with no numtolerance_input'

def _create_choice_element(self, **kwargs):

    text = kwargs.get('text', '')
    correct = kwargs.get('correctness', 'true')
    inputs = kwargs.get('inputs', [])
    choice_element = etree.Element('choice')
    choice_element.set('correct', correct)
    choice_element.text = text
    for inp in inputs:
        choice_element.append(inp)
    return choice_element
