'How to get return value in wei in Browine Test

I am new to the brownie. Please, how to get return value in wei in brownie test of given function

function getBalance() public view returns(uint ){
        return(address(this).balance);
    }


Solution 1:[1]

from brownie import accounts
def check_balance:
    if network.show_active() not in ["development", "ganache"]:
        pytest.skip("run local testing")
    # assuming in local environent
    account=accounts[0]
    # you should have deploy script which deploys the contract and returns the contract
    your_contract=deploy_token_script()
    assert(
        # make an assertion
        your_token.balanceOf(account.address)>0
    )

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Yilmaz