def test_north_wind(self): tile = Tile("北") self.assertEqual(tile.name, "north wind")
def test_west_wind(self): tile = Tile("西") self.assertEqual(tile.name, "west wind")
def test_south_wind(self): tile = Tile("南") self.assertEqual(tile.name, "south wind")
def test_white_dragon(self): tile = Tile("白") self.assertEqual(tile.name, "white dragon")
def test_east_wind(self): tile = Tile("東") self.assertEqual(tile.name, "east wind")
def test_dragon_is_honor(self): tile = Tile("F") self.assertEqual(tile.tile_type, "honor")
def test_wind_is_honor(self): tile = Tile("S") self.assertEqual(tile.tile_type, "honor")
def test_wind(self): tile = Tile("S") self.assertEqual(tile.honor, "wind")
def test_suited_tile_is_not_honor(self): tile = Tile("3/") self.assertRaises(AttributeError, lambda: tile.honor)
def test_rank_has_suit(self): tile = Tile("5/") self.assertEqual(tile.suit, "bamboo")
def test_honor_has_no_suit(self): tile = Tile("B") self.assertRaises(AttributeError, lambda: tile.suit)
def test_suit_has_rank(self): tile = Tile("5/") self.assertEqual(tile.rank, "5")
def test_terminal_is_not_honor(self): tile = Tile("1#") self.assertRaises(AttributeError, lambda: tile.honor)
def test_terminal_9(self): tile = Tile("9●") self.assertEqual(tile.tile_type, "terminal")
def test_red_dragon(self): tile = Tile("中") self.assertEqual(tile.name, "red dragon")
def test_name_suited(self): tile = Tile("8#") self.assertEqual(tile.name, "character 8")
def test_green_dragon(self): tile = Tile("發") self.assertEqual(tile.name, "green dragon")
def test_dragon(self): tile = Tile("F") self.assertEqual(tile.honor, "dragon")