test ``get_devices`` by mocking fabric's ``run`` and ``env``

TODO: there's gotta be a better way...