Files
dungeon-sheets/tests/test_make_sheets.py
T
2018-03-28 23:56:11 -05:00

14 lines
428 B
Python

import unittest
import os
from dungeonsheets import make_sheets, character
EG_DIR = os.path.abspath(os.path.join(os.path.split(__file__)[0], '../examples/'))
CHARFILE = os.path.join(EG_DIR, 'rogue.py')
class CharacterFileTestCase(unittest.TestCase):
def test_load_character_file(self):
charfile = CHARFILE
result = make_sheets.load_character_file(charfile)
self.assertEqual(result['strength'], 8)