コード例 #1
0
def test_find_droplet_wrong_id(manager):
    drop = dobackup.find_droplet(non_existing_droplet_id, manager)
    assert isinstance(drop, digitalocean.Droplet) is False
コード例 #2
0
def test_find_droplet_name(manager):
    drop = dobackup.find_droplet(existing_droplet_name, manager)
    assert isinstance(drop, digitalocean.Droplet) is True