# Path: rock/runtime.py
# class Runtime(object):
#     def __init__(self, name):
#     def root_path(*args):
#     def user_path(*args):
#     def path(self, *args):
#     def exists(self, *args):
# def list():


import helper
from rock import runtime
from __future__ import unicode_literals



class RuntimeTestCase(helper.unittest.TestCase):

    def setUp(self):
        helper.setenv()

    def test_list(self):
        rs = runtime.list()
        self.assertEqual(rs[0].name, 'escape123')
        self.assertEqual(rs[1].name, 'parent123')
        self.assertEqual(rs[2].name, 'parse123')
        self.assertEqual(rs[3].name, 'test123')
        self.assertEqual(rs[4].name, 'user123')
        @staticmethod
        def not_found():
            return '/tmp/this-should-not-exist'
        old_root_path = runtime.Runtime.root_path

# Path: rock/runtime.py
# class Runtime(object):
#     def __init__(self, name):
#     def root_path(*args):
#     def user_path(*args):
#     def path(self, *args):
#     def exists(self, *args):
# def list():


# Path: tests/test_runtime.py
import helper
from rock import runtime

from __future__ import unicode_literals



class RuntimeTestCase(helper.unittest.TestCase):

    def setUp(self):
        helper.setenv()

    def test_list(self):
        rs = runtime.list()
        self.assertEqual(rs[0].name, 'escape123')
        self.assertEqual(rs[1].name, 'parent123')
        self.assertEqual(rs[2].name, 'parse123')
        self.assertEqual(rs[3].name, 'test123')
        self.assertEqual(rs[4].name, 'user123')
        @staticmethod
        def not_found():
            return '/tmp/this-should-not-exist'
        old_root_path = runtime.Runtime.root_path

        old_user_path = runtime.Runtime.user_path