def test_render(self):
     p = STEParser(self.template)
     p.variables = {
                 'CRH_FIRST_NAME_ORIG': 'Bivis',
                 'ACC_BALANCE_PTS': '123',
                 'First Name': 'Ushat Pomoev',
                 'ATTR_RAIF': '0',
                 'ATTR_VS': '1',
                 'ATTR_VSSS': '0',
     }
     p.render()
 def test_condition(self):
     p = STEParser()
     p.load(self.template)
     p.template = "<!-- $(if [Field: ATTR_RAIF] == 1 and [Field: ATTR_RAIF] != 2) -->1<!-- $(endif)  -->" + \
                  "<!-- $(if [Field: ATTR_RAIF] == 1 or [Field: ATTR_RAIF] != 2) -->2<!-- $(endif)  -->"
     p.variables = {'ATTR_RAIF': '1'}
     self.assertEqual("12", p.render())