def test_distribute_coins_in_binary_tree(root, res): from solution.distribute_coins_in_binary_tree import Solution assert Solution().distribute_coins(Converter.list_to_tree(root)) == res