Disable test_find_files in test_portage_utils.py.
authorW. Trevor King <wking@drexel.edu>
Mon, 6 Jun 2011 23:12:29 +0000 (19:12 -0400)
committerW. Trevor King <wking@drexel.edu>
Mon, 6 Jun 2011 23:12:29 +0000 (19:12 -0400)
find_files has been commented out since this project was moved into
SVN.

tests/test_portage_utils.py

index 09b77db8900bf58e57b556df117058a47ad36de1..12a4ccd77bdb7988e7b452c71932e538ce87af59 100755 (executable)
@@ -1,12 +1,17 @@
 
 import os
 
-from g_pypi.portage_utils import find_files, find_egg_info_dir
 
+#from g_pypi.portage_utils import find_files
+from g_pypi.portage_utils import find_egg_info_dir
 
-def test_find_files():
-    print [egg for egg in find_files("passwd", "/etc")]
+
+#def test_find_files():
+#    print [egg for egg in find_files("passwd", "/etc")]
 
 def test_find_egg_info_dir():
+    # TODO: need an ebuild working directory to test
     udir = "/var/tmp/portage/dev-python/mako-0.1.7/work/Mako-0.1.7"
-    assert find_egg_info_dir(udir) == os.path.join(udir, "lib")
+    egg_info_dir = find_egg_info_dir(udir)
+    if egg_info_dir != os.path.join(udir, "lib"):
+        raise Exception(find_egg_info_dir(udir))