# -*- coding: utf-8 -*-
import os

import plim
from plim import lexer as l
from plim import syntax
from plim.errors import PlimSyntaxError, ParserNotFound
from .. import TestCaseBase


class TestDjangoSyntax(TestCaseBase):

    def setUp(self):
        super(TestDjangoSyntax, self).setUp()
        self.preprocessor = plim.preprocessor_factory(syntax='django')

    def test_conditionals(self):
        test_case = 'if'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())

    def test_loops(self):
        test_case = 'for'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())
aad4d5d3a0532d165ef5a73f3911b551494a67ee
<mask token>


class TestDjangoSyntax(TestCaseBase):
    <mask token>
    <mask token>
    <mask token>

<mask token>


class TestDjangoSyntax(TestCaseBase):
    <mask token>

    def test_conditionals(self):
        test_case = 'if'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())

    def test_loops(self):
        test_case = 'for'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())

<mask token>


class TestDjangoSyntax(TestCaseBase):

    def setUp(self):
        super(TestDjangoSyntax, self).setUp()
        self.preprocessor = plim.preprocessor_factory(syntax='django')

    def test_conditionals(self):
        test_case = 'if'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())

    def test_loops(self):
        test_case = 'for'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())

import os
import plim
from plim import lexer as l
from plim import syntax
from plim.errors import PlimSyntaxError, ParserNotFound
from .. import TestCaseBase


class TestDjangoSyntax(TestCaseBase):

    def setUp(self):
        super(TestDjangoSyntax, self).setUp()
        self.preprocessor = plim.preprocessor_factory(syntax='django')

    def test_conditionals(self):
        test_case = 'if'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())

    def test_loops(self):
        test_case = 'for'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())

# -*- coding: utf-8 -*-
import os

import plim
from plim import lexer as l
from plim import syntax
from plim.errors import PlimSyntaxError, ParserNotFound
from .. import TestCaseBase


class TestDjangoSyntax(TestCaseBase):

    def setUp(self):
        super(TestDjangoSyntax, self).setUp()
        self.preprocessor = plim.preprocessor_factory(syntax='django')

    def test_conditionals(self):
        test_case = 'if'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())

    def test_loops(self):
        test_case = 'for'
        source = self.get_file_contents(test_case + '_test.plim')
        result = self.get_file_contents(test_case + '_result.dtl')
        data = self.preprocessor(source)
        self.check_relevant_chars(data.strip(), result.strip())