'Invalid UTF-8 encoding in bytestrings should raise a useful error'

def test_utf8_bytestring(self):

    engine = self.engine
    loader = engine.template_loaders[0]
    with self.assertRaises(UnicodeDecodeError):
        list(loader.get_template_sources('\xc3\xc3'))
