def test_conditional_inequality(self):
        conditional = ['if', 'age 21,name mm', 'md5!=md5,']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'name mm'
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 21,name mm', 'md5!=md6,']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'age 21'
        self.assertEqual(expected, actual)
    def test_conditional_equality_backwards_compat(self):
        conditional = ['if', 'age 21,name mm', 'md5==md5']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'age 21'
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 21,name mm', 'md5==md6']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'name mm'
        self.assertEqual(expected, actual)
    def test_conditional_key_in_dictionary(self):
        conditional = [
            'if', 'age 21,name mm', "test in {'notest':2&'test':1},"
        ]
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'age 21'
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 21,name mm', "result in {'test':1},"]
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'name mm'
        self.assertEqual(expected, actual)
    def test_conditional_less_than(self):
        conditional = ['if', 'age 21', '1< 2']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'age 21'
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 22', '2 < 2']
        actual = CommandFiller.execute_conditional(conditional)
        expected = ''
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 23', '3 <2']
        actual = CommandFiller.execute_conditional(conditional)
        expected = ''
        self.assertEqual(expected, actual)
    def test_conditional_greater_than(self):
        conditional = ['if', 'age 21', '2 > 1']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'age 21'
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 22', '2 > 2']
        actual = CommandFiller.execute_conditional(conditional)
        expected = ''
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 23', '2 > 3']
        actual = CommandFiller.execute_conditional(conditional)
        expected = ''
        self.assertEqual(expected, actual)
    def test_conditional_if_elseif_else(self):
        conditional = ['if', 'age 21,age 22,age 23', '1 == 1,1 == 2,']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'age 21'
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 21,age 22,age 23', '2 == 1,2 == 2,']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'age 22'
        self.assertEqual(expected, actual)

        conditional = ['if', 'age 21,age 22,age 23', '2 == 1,1 == 2,']
        actual = CommandFiller.execute_conditional(conditional)
        expected = 'age 23'
        self.assertEqual(expected, actual)