Пример #1
0
 def test_postbringin_seat5_returnsString(self):
     self.setUp_stud()
     tools.deal_stud5(self.r.table, matchingranks=0)
     expected = 'bob5 brings it in for $1'
     self.r.table.set_bringin()
     result = self.r.post_bringin()
     self.assertEqual(expected, result)
Пример #2
0
 def test_postbringin_seat5_has2chipsless(self):
     """ XXX """
     self.setUp_stud()
     tools.deal_stud5(self.r.table, matchingranks=0)
     self.r.table.set_bringin()
     BI = self.r.table.TOKENS['BI']
     seat = self.r.table.seats[BI]
     stack = seat.stack
     self.r.post_bringin()
     expected = 1
     result = stack - seat.stack
     self.assertEqual(expected, result)
Пример #3
0
 def test_bringin_stud7_4tied_returns1(self):
     tools.deal_stud5(self.t, matchingranks=4)
     self.t.set_bringin()
     expected = 1
     result = self.t.TOKENS["BI"]
     self.assertEqual(expected, result)
Пример #4
0
 def test_bringin_stud7_no_ties_returns6(self):
     tools.deal_stud5(self.t, matchingranks=0)
     self.t.set_bringin()
     expected = 5
     result = self.t.TOKENS["BI"]
     self.assertEqual(expected, result)