class CreateRangeVoteCommand():
    def __init__(self, uuid, question, choices):
        self.uuid = uuid
        self.question = question
        self.choices = choices


class CreateRangeVoteCommandValidator():
    def __init__(self, data):
        self.data = data

    def is_valid(self):
        if 'question' not in self.data or 'choices' not in self.data:
            return False
        if len(self.data['choices']) < 2:
            return False
        return True
@@ -1,28 +1,83 @@
+import logging%0A%0Alogger = logging.getLogger(__name__)%0A%0A%0A
 class CreateRangeVoteCommand
@@ -427,62 +427,269 @@
     
-return False%0A        if len(self.data%5B'choices'%5D) %3C 2:
+logger.debug('CreateRangeVoteCommandValidator : question or choices not in rangevote')%0A            return False%0A        if len(self.data%5B'choices'%5D) %3C 2:%0A            logger.debug('CreateRangeVoteCommandValidator : should have at least two choices in rangevote')
 %0A   

add log to command