#! /usr/bin/env python
# -*- coding: utf-8 -*-

from jnpr.junos import Device
from jnpr.junos.utils.config import Config
from jnpr.jsnapy import SnapAdmin

from pprint import pprint, pformat


jsnapy_config =\
'''
hosts:
  - device: 192.168.34.16 
    username : user1
    passwd: password1
    port: 22
tests:
- ./tests/test_hostname.yml
'''

jsnapy = SnapAdmin()

for i in range(0,10):
    print i
    snapcheck_dict = jsnapy.snapcheck(
                  data = jsnapy_config,
                  file_name = "snap01")

@@ -1,8 +1,165 @@
+# This is debug script for JSNAPy 1.0.0 issue(https://github.com/Juniper/jsnapy/issues/204)%0A# If you upgrade after JSNAPY 1.0.1, this issue will be solved.%0A%0A
 #! /usr/
@@ -202,38 +202,8 @@
 *-%0A%0A
-from jnpr.junos import Device%0A
 from
@@ -280,45 +280,8 @@
 in%0A%0A
-from pprint import pprint, pformat%0A%0A%0A
 jsna
@@ -601,9 +601,8 @@
 snap01%22)
-%0A

Add comment on debug script. the problem was closed https://github.com/Juniper/jsnapy/issues/204