# Path: ayrton/expansion.py
# def bash (s, single=False):
#     data= backslash_descape (glob_expand (tilde_expand (brace_expand (s))))
#     if single and len(data)==1:
#         data= data[0]
#     return data
# 
# def default (parameter, word):
#     ans= get_var (parameter)
# 
#     if is_null (ans):
#         ans= word
# 
#     # according to bash's manpage, default's second parameter should be expanded
#     # but tests have shown that it is not so
#     return ans
# 
# Path: ayrton/execute.py
# class CommandNotFound (NameError):
#     def __init__ (self, name):
#         self.name= name
# 
#     def __str__ (self):
#         return "CommandNotFound or NameError: command %(name)s not found or name %(name)s is not defined" % self.__dict__


import unittest
import sys
import io
import os
import tempfile
import os.path
import ayrton
import logging
from ayrton.expansion import bash, default
from ayrton.execute import CommandNotFound
        self.assertRaises (CommandNotFound, self.doTest,
                           'testFromImportAsFails.ay')

    def testAssign (self):
        self.doTest ('testAssign.ay')

    def testDel (self):
        self.assertRaises (ayrton.CommandFailed, self.doTest, 'testDel.ay')

    def testDefFun1 (self):
        self.doTest ('testDefFun1.ay')

    def testDefFun2 (self):
        self.assertRaises (ayrton.CommandFailed, self.doTest, 'testDefFun2.ay')

    def testDefFunFails1 (self):
        self.doTest ('testDefFunFails1.ay')

    def testCallFun (self):
        self.doTest ('testCallFun.ay')

    def testCommandIsPresent (self):
        self.doTest ('testCommandIsPresent.ay')

    def testInstantiateClass (self):
        self.doTest ('testInstantiateClass.ay')

    def testUnknown (self):
        try:
            ayrton.main ('''foo''')

# Path: ayrton/expansion.py
# def bash (s, single=False):
#     data= backslash_descape (glob_expand (tilde_expand (brace_expand (s))))
#     if single and len(data)==1:
#         data= data[0]
#     return data
# 
# def default (parameter, word):
#     ans= get_var (parameter)
# 
#     if is_null (ans):
#         ans= word
# 
#     # according to bash's manpage, default's second parameter should be expanded
#     # but tests have shown that it is not so
#     return ans
# 
# Path: ayrton/execute.py
# class CommandNotFound (NameError):
#     def __init__ (self, name):
#         self.name= name
# 
#     def __str__ (self):
#         return "CommandNotFound or NameError: command %(name)s not found or name %(name)s is not defined" % self.__dict__


# Path: ayrton/tests/test_ayrton.py
import unittest
import sys
import io
import os
import tempfile
import os.path
import ayrton
import logging
from ayrton.expansion import bash, default
from ayrton.execute import CommandNotFound

        self.assertRaises (CommandNotFound, self.doTest,
                           'testFromImportAsFails.ay')

    def testAssign (self):
        self.doTest ('testAssign.ay')

    def testDel (self):
        self.assertRaises (ayrton.CommandFailed, self.doTest, 'testDel.ay')

    def testDefFun1 (self):
        self.doTest ('testDefFun1.ay')

    def testDefFun2 (self):
        self.assertRaises (ayrton.CommandFailed, self.doTest, 'testDefFun2.ay')

    def testDefFunFails1 (self):
        self.doTest ('testDefFunFails1.ay')

    def testCallFun (self):
        self.doTest ('testCallFun.ay')

    def testCommandIsPresent (self):
        self.doTest ('testCommandIsPresent.ay')

    def testInstantiateClass (self):
        self.doTest ('testInstantiateClass.ay')

    def testUnknown (self):
        try:
            ayrton.main ('''foo''')

        except CommandNotFound: