##// END OF EJS Templates
Added parser test. Fixed quote preparsing
Added parser test. Fixed quote preparsing

File last commit:

r886:483e1c3a default
r886:483e1c3a default
Show More
test_parser.py
10 lines | 334 B | text/x-python | PythonLexer
from django.test import TestCase
from boards.models import Post
class ParserTest(TestCase):
def test_preparse_quote(self):
raw_text = '>quote'
preparsed_text = Post.objects._preparse_text(raw_text)
self.assertEqual('[quote]quote[/quote]', preparsed_text,
'Quote not preparsed.')