Author: Robie Basak <robie.basak@ubuntu.com>
Description: locate test data based on the module directory
 Removes the assumption that the test data is available in the current
 directory, since test runners typically do not set the working directory as
 they traverse through tests. This allows nosetests to discover and run this
 test successfully.
Forwarded: no
Last-Update: 2014-03-27

2014-03-27: patch submission to upstream by email to jc@purdue.edu bounced.

--- a/test/named_importer_lib_regtest.py
+++ b/test/named_importer_lib_regtest.py
@@ -46,7 +46,10 @@
 import iscpy
 
 
-NAMED_FILE = 'test_data/named.example.conf'
+NAMED_FILE = os.path.join(
+	os.path.dirname(__file__),
+	'test_data/named.example.conf'
+)
 
 
 class TestNamedImport(unittest.TestCase):
