Add unittests and fix bugs

* Improved error messages
* Improved checking of user input

Signed-off-by: Jhon Honce <jhonce@redhat.com>

Closes: #978
Approved by: mheon
This commit is contained in:
Jhon Honce
2018-06-20 19:14:27 -07:00
committed by Atomic Bot
parent 3092d20847
commit 2f0f9944b6
6 changed files with 181 additions and 44 deletions

View File

@ -32,8 +32,8 @@ class TestSystem(unittest.TestCase):
uri=local_uri,
remote_uri=remote_uri,
identity_file=os.path.expanduser('~/.ssh/id_rsa'),
) as pclient:
pclient.system.ping()
) as remote_client:
remote_client.system.ping()
def test_versions(self):
with podman.Client(self.host) as pclient: