call site 8 for magic.autopath
misc/testing/test_initpkg.py - line 83
81
82
83
   def check_import(modpath): 
       print "checking import", modpath
->     assert __import__(modpath) 
misc/testing/test_update_website.py - line 4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
   import py
   import sys
   
-> here = py.magic.autopath().dirpath()
   update_website = here.join('../../bin/_update_website.py').pyimport()
   
   def test_rsync():
       temp = py.test.ensuretemp('update_website_rsync')
       pkgpath = temp.join('pkg')
       apipath = temp.join('apigen')
       pkgpath.ensure('foo/bar.txt', file=True).write('baz')
       pkgpath.ensure('spam/eggs.txt', file=True).write('spam')
       apipath.ensure('api/foo.html', file=True).write('<html />')
       apipath.ensure('source/spam.html', file=True).write('<html />')
   
       rsyncpath = temp.join('rsync')
       assert not rsyncpath.check()
       gateway = py.execnet.PopenGateway()
       update_website.rsync(pkgpath, apipath, gateway, rsyncpath.strpath)
       assert rsyncpath.check(dir=True)
       assert rsyncpath.join('pkg').check(dir=True)
       assert rsyncpath.join('pkg/spam/eggs.txt').read() == 'spam'
       assert rsyncpath.join('apigen').check(dir=True)
       assert rsyncpath.join('apigen/api/foo.html').read() == '<html />'