# 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.doTest('testZEmptyString.ay', True)

    def testZNone(self):
        self.doTest('testZNone.ay', True)

    def testZString(self):
        self.doTest('testZString.ay', False)

    def testZInt(self):
        self.doTest('testZInt.ay', False)

    def testZEnvVar(self):
        self.doTest('testZEnvVar.ay', False)

    def testDefine(self):
        self.doTest('testDefine.ay', None)

    def testDefine(self):
        self.doTest('testDefineValue.ay', 6)

    def testDefineAgain(self):
        self.doTest('testDefineAgain.ay', False)


class CommandDetection (ScriptExecution):

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

    def testSimpleCaseFails (self):

# 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.doTest('testZEmptyString.ay', True)

    def testZNone(self):
        self.doTest('testZNone.ay', True)

    def testZString(self):
        self.doTest('testZString.ay', False)

    def testZInt(self):
        self.doTest('testZInt.ay', False)

    def testZEnvVar(self):
        self.doTest('testZEnvVar.ay', False)

    def testDefine(self):
        self.doTest('testDefine.ay', None)

    def testDefine(self):
        self.doTest('testDefineValue.ay', 6)

    def testDefineAgain(self):
        self.doTest('testDefineAgain.ay', False)


class CommandDetection (ScriptExecution):

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

    def testSimpleCaseFails (self):

        self.assertRaises (CommandNotFound, self.doTest,