Added get network test

This commit is contained in:
James Belleau 2020-05-06 21:54:59 -05:00
commit 811ec3bd2a
3 changed files with 25 additions and 1 deletions

View file

@ -131,3 +131,12 @@ def test_create_network_badedition():
VotingPolicy=default_votingpolicy,
MemberConfiguration=default_memberconfiguration,
).should.throw(Exception, "Invalid request body")
@mock_managedblockchain
def test_get_network_badnetwork():
conn = boto3.client("managedblockchain", region_name="us-east-1")
response = conn.get_network.when.called_with(
NetworkId="n-BADNETWORK",
).should.throw(Exception, "Network n-BADNETWORK not found")