Skip to content
Snippets Groups Projects
Commit 8096f75d authored by Chris Beaven's avatar Chris Beaven
Browse files

Add basic test for Asset.calls property

parent cea86adb
No related branches found
No related tags found
No related merge requests found
...@@ -4,4 +4,5 @@ scrypt==0.7.1 ...@@ -4,4 +4,5 @@ scrypt==0.7.1
Events==0.2.2 Events==0.2.2
pyyaml pyyaml
pytest pytest
pytest-mock
coverage coverage
from bitshares.asset import Asset
from bitshares import BitShares
def test_calls(mocker):
asset = Asset("USD", lazy=True, bitshares_instance=BitShares(offline=True))
method = mocker.patch.object(Asset, 'get_call_orders')
asset.calls
method.assert_called_with(10)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment