Added more all wizard necromancy spells and a spell factory.

This commit is contained in:
Mark Wolfman
2018-04-09 23:58:56 -05:00
parent 82d59a70d9
commit e6bec1ce55
8 changed files with 348 additions and 24 deletions
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env python
from unittest import TestCase
from dungeonsheets.spells import create_spell, Spell
class TestSpells(TestCase):
"""Tests for spells and spell-related activities."""
def test_create_spell(self):
NewSpell = create_spell(name="Hello world")
self.assertTrue(issubclass(NewSpell, Spell))
self.assertEqual(NewSpell.name, 'Hello world')
spell = NewSpell()
print(spell, spell.__class__, type(spell))