def test_Stats(self): """Test basic construction and operation of Stats instance""" stats = Stats() self.assertIsNotNone(stats) # Should have 9 players by default self.assertEqual(stats.number_of_hands, 9) # Test both direct attribute access and methods self.assertEqual(stats.number_of_games, 0) self.assertEqual(stats.get_number_of_games(), 0) self.assertEqual(len(stats.high_winners), stats.number_of_hands) self.assertEqual(len(stats.get_high_winners()), stats.number_of_hands) self.assertEqual(len(stats.low_winners), stats.number_of_hands) self.assertEqual(len(stats.get_low_winners()), stats.number_of_hands) self.assertEqual(len(stats.scoops), stats.number_of_hands) self.assertEqual(len(stats.get_scoops()), stats.number_of_hands) for index in range(stats.number_of_hands): self.assertEqual(0, stats.high_winners[index]) self.assertEqual(0, stats.low_winners[index]) self.assertEqual(0, stats.scoops[index])