예제 #1
0
 def test_totalartillery(self):
     expected = 14
     self.assertEqual(expected, CV().maxArtillery)
예제 #2
0
 def test_totalnumberofcards(self):
     expected = CV().cardsTotalNum
     self.assertEqual(expected, Cards().getcardstotal())
예제 #3
0
 def test_totalchivalry(self):
     expected = 14
     self.assertEqual(expected, CV().maxChivalry)
예제 #4
0
 def test_totalinfantery(self):
     expected = 14
     self.assertEqual(expected, CV().maxInfantry)
예제 #5
0
 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