def test_deepcopy_state(self): table = self.__setup_table() original = RoundManager._RoundManager__gen_initial_state(2, 5, table) copied = RoundManager._RoundManager__deep_copy_state(original) check = lambda key: self.eq(original[key], copied[key]) [ check(key) for key in ["round_count", "small_blind_amount", "street", "next_player"] ]
def test_deepcopy_state(self): table = self.__setup_table() original = RoundManager._RoundManager__gen_initial_state(2, 5, table) copied = RoundManager._RoundManager__deep_copy_state(original) def check(key): return self.eq(original[key], copied[key]) [ check(key) for key in ['round_count', 'small_blind_amount', 'street', 'next_player'] ]
def test_deepcopy_state(self): table = self.__setup_table() original = RoundManager._RoundManager__gen_initial_state(2, 5, table) copied = RoundManager._RoundManager__deep_copy_state(original) check = lambda key: self.eq(original[key], copied[key]) [check(key) for key in ["round_count", "small_blind_amount", "street", "next_player"]]