# Path: easymode/tests/models.py
# class TestModel(models.Model):
#     "Used in lots of test"
# 
#     charfield = models.CharField(max_length=255, unique=True)
#     tags = models.ManyToManyField('TagModel', related_name='testmodels')
#     
#     def __unicode__(self):
#         return u"%s%s - %s" % (self.__class__.__name__, self.pk, self.charfield)
# 
#     def natural_key(self):
#         return (self.charfield,)
# 
# Path: easymode/utils/languagecode.py
# def get_language_codes():
#     """
#     Retrieves all the language codes defined in ``settings.LANGUAGES``.
#     
#     >>> settings.LANGUAGES = (('en','English'),('de','German'),('nl-be','Belgium dutch'),('fr-be','Belgium french'),)
#     >>> sorted( get_language_codes() )
#     ['de', 'en', 'fr-be', 'nl-be']
#     
#     :rtype: A :class:`list` of language codes.
#     """
#     return dict(settings.LANGUAGES).keys()


from django.http import HttpResponse
from django.template.loader import find_template_source
from django.test import TestCase
from easymode.tree import xml as tree
from easymode.tests.models import TestModel
from easymode.tests.testcases import initdb
from easymode.utils.languagecode import get_language_codes
from easymode.xslt import response



if 'en-us' not in get_language_codes():
    raise Exception('the language "en-us" must be in your LANGUAGES to run the test suite')

__all__ = ('XsltTest',)

@initdb
class XsltTest(TestCase):
    """
    Test the functionality related to xslt
    """
    
    def setUp(self):

# Path: easymode/tests/models.py
# class TestModel(models.Model):
#     "Used in lots of test"
# 
#     charfield = models.CharField(max_length=255, unique=True)
#     tags = models.ManyToManyField('TagModel', related_name='testmodels')
#     
#     def __unicode__(self):
#         return u"%s%s - %s" % (self.__class__.__name__, self.pk, self.charfield)
# 
#     def natural_key(self):
#         return (self.charfield,)
# 
# Path: easymode/utils/languagecode.py
# def get_language_codes():
#     """
#     Retrieves all the language codes defined in ``settings.LANGUAGES``.
#     
#     >>> settings.LANGUAGES = (('en','English'),('de','German'),('nl-be','Belgium dutch'),('fr-be','Belgium french'),)
#     >>> sorted( get_language_codes() )
#     ['de', 'en', 'fr-be', 'nl-be']
#     
#     :rtype: A :class:`list` of language codes.
#     """
#     return dict(settings.LANGUAGES).keys()


# Path: easymode/tests/testcases/testxslt.py
from django.http import HttpResponse
from django.template.loader import find_template_source
from django.test import TestCase
from easymode.tree import xml as tree
from easymode.tests.models import TestModel
from easymode.tests.testcases import initdb
from easymode.utils.languagecode import get_language_codes
from easymode.xslt import response




if 'en-us' not in get_language_codes():
    raise Exception('the language "en-us" must be in your LANGUAGES to run the test suite')

__all__ = ('XsltTest',)

@initdb
class XsltTest(TestCase):
    """
    Test the functionality related to xslt
    """
    
    def setUp(self):

        t = TestModel(charfield='Hoi Ik ben de root node')