blob: 73f4009c0340a15a8c6761c03edabd1f56e4804b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
"""Tests for enums module."""
import unittest
from imago.data.enums import Player
class TestEnums(unittest.TestCase):
"""Test parseHelpers module."""
def testOtherPlayer(self):
"""Test method to get the other player"""
self.assertEqual(Player.otherPlayer(Player.BLACK), Player.WHITE)
self.assertEqual(Player.otherPlayer(Player.WHITE), Player.BLACK)
self.assertEqual(Player.otherPlayer(''), Player.EMPTY)
|