def test_basic_convert(self):
        """ Tests conversion with no tokens are macros. """
        template = convert.get_template(resource(FREEMARKER_BASIC_HTML_NAME))
        output = convert.freemarker_to_django(template)

        expected = read_file(DJANGO_BASIC_HTML_NAME)
        self.assertEqualsStr(expected, output.replace('\r', ''))
 def test_convert_basic_variable(self):
     """ Tests conversion of variable to something that Django can understand. """
     template = convert.get_template(resource(FREEMARKER_BASIC_VARIABLE_NAME))
     output = convert.freemarker_to_django(template)
     expected = read_file(DJANGO_BASIC_VARIABLE_NAME)
     self.assertEqualsStr(expected, output)