blob: 21b205732024a601f9fa55886d3414cf47cdb9d7 (
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 enums 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)
|