# Path: g_sorcery/compatibility.py
# class TemporaryDirectory(object):
#     def __init__(self):
#         self.name = mkdtemp()
# 
#     def __del__(self):
#         shutil.rmtree(self.name)


import unittest
from g_sorcery.compatibility import TemporaryDirectory
#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
    base.py
    ~~~~~~~
    
    base class for tests
    
    :copyright: (c) 2013 by Jauhien Piatlicki
    :license: GPL-2, see LICENSE for more details.
"""



class BaseTest(unittest.TestCase):

    def setUp(self):

# Path: g_sorcery/compatibility.py
# class TemporaryDirectory(object):
#     def __init__(self):
#         self.name = mkdtemp()
# 
#     def __del__(self):
#         shutil.rmtree(self.name)


# Path: tests/base.py
import unittest
from g_sorcery.compatibility import TemporaryDirectory

#!/usr/bin/env python
# -*- coding: utf-8 -*-

"""
    base.py
    ~~~~~~~
    
    base class for tests
    
    :copyright: (c) 2013 by Jauhien Piatlicki
    :license: GPL-2, see LICENSE for more details.
"""



class BaseTest(unittest.TestCase):

    def setUp(self):

        self.tempdir = TemporaryDirectory()