コード例 #1
0
ファイル: CardsTest.py プロジェクト: SGjorge/Risk-ISI
 def test_totalartillery(self):
     expected = 14
     self.assertEqual(expected, CV().maxArtillery)
コード例 #2
0
ファイル: CardsTest.py プロジェクト: SGjorge/Risk-ISI
 def test_totalnumberofcards(self):
     expected = CV().cardsTotalNum
     self.assertEqual(expected, Cards().getcardstotal())
コード例 #3
0
ファイル: CardsTest.py プロジェクト: SGjorge/Risk-ISI
 def test_totalchivalry(self):
     expected = 14
     self.assertEqual(expected, CV().maxChivalry)
コード例 #4
0
ファイル: CardsTest.py プロジェクト: SGjorge/Risk-ISI
 def test_totalinfantery(self):
     expected = 14
     self.assertEqual(expected, CV().maxInfantry)
コード例 #5
0
ファイル: CardsTest.py プロジェクト: SGjorge/Risk-ISI
 def test_totaljokers(self):
     expected = 2
     self.assertEqual(expected, CV().maxJokers)
コード例 #6
0
 def numberofplayersok(self, numPlayers):
     if (numPlayers >= CV().minPlayers) and (numPlayers <= CV().maxPlayers):
         return True
     return False
コード例 #7
0
ファイル: Cards.py プロジェクト: SGjorge/Risk-ISI
 def getcardstotal(self):
     return CV().cardsTotalNum