all test pass

This commit is contained in:
Mario Rodas 2011-07-02 15:15:21 -05:00
commit dc6934be43
5 changed files with 61 additions and 12 deletions

View file

@ -5,7 +5,7 @@ import datetime
from pelican import readers
CUR_DIR = os.path.dirname(__file__)
CONTENT_PATH = os.path.join(CUR_DIR, '..', '..', 'samples', 'content')
CONTENT_PATH = os.path.join(CUR_DIR, 'content')
def _filename(*args):
return os.path.join(CONTENT_PATH, *args)
@ -13,9 +13,9 @@ def _filename(*args):
class RstReaderTest(unittest2.TestCase):
def test_metadata(self):
def test_article_with_metadata(self):
reader = readers.RstReader()
content, metadata = reader.read(_filename('super_article.rst'))
content, metadata = reader.read(_filename('article_with_metadata.rst'))
expected = {
'category': 'yeah',
'author': u'Alexis Métaireau',