# Path: luna/tests/helpers.py
# def test_file(src='', suffix=''):
#     f = tempfile.NamedTemporaryFile(suffix=suffix)
#     f.write(src)
#     f.flush()
#     return f


import os
import subprocess
from luna.tests.helpers import test_file



class TestCompatibility(object):
    """
    Compatibility tests for Lua 5.1 from the
    official lua distribution
    """

    PYLUA_BIN = os.path.join(os.path.dirname(os.path.abspath(__file__)), ('../../lunac'))

    def test_constructs(self, capsys):

# Path: luna/tests/helpers.py
# def test_file(src='', suffix=''):
#     f = tempfile.NamedTemporaryFile(suffix=suffix)
#     f.write(src)
#     f.flush()
#     return f


# Path: luna/tests/test_compatibility.py
import os
import subprocess
from luna.tests.helpers import test_file




class TestCompatibility(object):
    """
    Compatibility tests for Lua 5.1 from the
    official lua distribution
    """

    PYLUA_BIN = os.path.join(os.path.dirname(os.path.abspath(__file__)), ('../../lunac'))

    def test_constructs(self, capsys):

        test_file = os.path.join(os.path.dirname(os.path.abspath(__file__)), ('scripts/constructs.lua'))