{"action":"created","issue":{"url":"https://api.github.com/repos/philpep/testinfra/issues/7","labels_url":"https://api.github.com/repos/philpep/testinfra/issues/7/labels{/name}","comments_url":"https://api.github.com/repos/philpep/testinfra/issues/7/comments","events_url":"https://api.github.com/repos/philpep/testinfra/issues/7/events","html_url":"https://github.com/philpep/testinfra/issues/7","id":99041994,"number":7,"title":"python limitation in testinfra","user":{"login":"sh3llsh0ck","id":4104127,"avatar_url":"https://avatars.githubusercontent.com/u/4104127?v=3","gravatar_id":"","url":"https://api.github.com/users/sh3llsh0ck","html_url":"https://github.com/sh3llsh0ck","followers_url":"https://api.github.com/users/sh3llsh0ck/followers","following_url":"https://api.github.com/users/sh3llsh0ck/following{/other_user}","gists_url":"https://api.github.com/users/sh3llsh0ck/gists{/gist_id}","starred_url":"https://api.github.com/users/sh3llsh0ck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sh3llsh0ck/subscriptions","organizations_url":"https://api.github.com/users/sh3llsh0ck/orgs","repos_url":"https://api.github.com/users/sh3llsh0ck/repos","events_url":"https://api.github.com/users/sh3llsh0ck/events{/privacy}","received_events_url":"https://api.github.com/users/sh3llsh0ck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-04T19:20:03Z","updated_at":"2015-08-04T22:06:56Z","closed_at":null,"body":"I have a custom test script made with python , there are imported libraries and lots of code, also i am using salt client api inside my script, I am guessing when my script comes to a line like this it freeze or something `caller = salt.client.Caller()`\r\n\r\nhere is a simple script you can test with it:\r\n\r\n```python\r\n#test_myinfra.py\r\nimport salt.client\r\ndef test_passwd_file(File):\r\n    passwd = File(\"/etc/passwd\")\r\n    assert passwd.contains(\"root\")\r\n    assert passwd.user == \"root\"\r\n    assert passwd.group == \"root\"\r\n    assert passwd.mode == 644\r\n    caller = salt.client.Caller()\r\n    state_data = []\r\n    assert type(state_data) == dict\r\n```\r\ni am using the following command\r\n```bash\r\npy.test test_myinfra.py --connection=salt --hosts=minion_name -v\r\n```\r\n\r\nand here is a screenshot to enusre that if i moved my script to minion and executed it by typing `py.test test_myinfra.py` it works without problems , so the currently problem is when i use `--connection=salt --hosts=minion_name`\r\n\r\n![screenshot from 2015-08-04 21 30 12](https://cloud.githubusercontent.com/assets/4104127/9070502/4e456838-3af0-11e5-80d2-7a526ac5dcfd.png)\r\n"},"comment":{"url":"https://api.github.com/repos/philpep/testinfra/issues/comments/127776172","html_url":"https://github.com/philpep/testinfra/issues/7#issuecomment-127776172","issue_url":"https://api.github.com/repos/philpep/testinfra/issues/7","id":127776172,"user":{"login":"philpep","id":387511,"avatar_url":"https://avatars.githubusercontent.com/u/387511?v=3","gravatar_id":"","url":"https://api.github.com/users/philpep","html_url":"https://github.com/philpep","followers_url":"https://api.github.com/users/philpep/followers","following_url":"https://api.github.com/users/philpep/following{/other_user}","gists_url":"https://api.github.com/users/philpep/gists{/gist_id}","starred_url":"https://api.github.com/users/philpep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/philpep/subscriptions","organizations_url":"https://api.github.com/users/philpep/orgs","repos_url":"https://api.github.com/users/philpep/repos","events_url":"https://api.github.com/users/philpep/events{/privacy}","received_events_url":"https://api.github.com/users/philpep/received_events","type":"User","site_admin":false},"created_at":"2015-08-04T22:06:56Z","updated_at":"2015-08-04T22:06:56Z","body":"It's looks like salt protocol communication. I need to see more of your setup & code with vagrant to reproduce the issue (or drop me an email).\r\n\r\nI wonder why you use `salt.client.Caller()` instead of `Salt` fixture ?"}}