# Path: ravel/util.py
# def resource_file(name=None):
#     """Search for a file within the distribution and return its absolute path.
#        If no name is passed, returns the absolute path to the distribution's
#        top-level directory
#        name: the name of the file
#        returns: absolute path to the file"""
#     install_path = os.path.dirname(os.path.abspath(__file__))
#     install_path = os.path.normpath(
#         os.path.join(install_path, ".."))
# 
#     if name is None:
#         return install_path
# 
#     return os.path.abspath(os.path.join(install_path, name))


import os
import pexpect
import sys
import time
import unittest
from runner import addRavelPath
from ravel.util import resource_file
#!/usr/bin/env python


addRavelPath()


class testCommands(unittest.TestCase):
    ravelCmd = "python {0} --topo single,3".format(resource_file("ravel.py"))

    # Part 1 - Startup Options
    def testStartup(self):

# Path: ravel/util.py
# def resource_file(name=None):
#     """Search for a file within the distribution and return its absolute path.
#        If no name is passed, returns the absolute path to the distribution's
#        top-level directory
#        name: the name of the file
#        returns: absolute path to the file"""
#     install_path = os.path.dirname(os.path.abspath(__file__))
#     install_path = os.path.normpath(
#         os.path.join(install_path, ".."))
# 
#     if name is None:
#         return install_path
# 
#     return os.path.abspath(os.path.join(install_path, name))


# Path: ravel/test/test_walkthrough.py
import os
import pexpect
import sys
import time
import unittest
from runner import addRavelPath
from ravel.util import resource_file

#!/usr/bin/env python


addRavelPath()


class testCommands(unittest.TestCase):
    ravelCmd = "python {0} --topo single,3".format(resource_file("ravel.py"))

    # Part 1 - Startup Options
    def testStartup(self):

        cmd = "python {0} ".format(resource_file("ravel.py"))