1
0
Fork 0
mirror of https://github.com/shlomif/PySolFC.git synced 2025-04-05 00:02:29 -04:00
PySolFC/tests/lib/pysol_tests/test_game_drag.py
Juhani Numminen 076ee8d11a Run unittests via a single TAP test
Enable standard unittest discovery by creating __init__.py files
and renaming test modules to test*.py.
2021-07-07 18:13:34 +03:00

18 lines
454 B
Python

# Written by Shlomi Fish, under the MIT Expat License.
import unittest
from pysollib.game import GameDrag, GameStacks
class GameDragTests(unittest.TestCase):
def test_shadows(self):
d = GameDrag()
d.shadows.append("test")
self.assertTrue(len(d.shadows))
def test_addattr(self):
s = GameStacks()
s.addattr(tableaux=[])
s.tableaux.append("myval")
self.assertEqual(s.tableaux, ["myval"])