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