bebraw
1/14/2010 - 2:17 PM

interpreter.py

...

    def test_none(self):
        interpreter = Interpreter()

        assert interpreter.interpret(None) == None

...
...

    def interpret(self, expression):
        possible_parameters = {'context': self.context,
            'commands': self.commands, 'expression': expression,
            'variables': self.variables}

        if expression is None:
            return

        ...