Changeset - 49850d2e22b6
[Not reviewed]
0 1 0
Lance Edgar (lance) - 7 years ago 2018-02-26 00:18:20
lance@edbob.org
Test commit
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
rattail/tests/test_util.py
Show inline comments
 
# -*- coding: utf-8; -*-
 

	
 
from __future__ import unicode_literals
 
from __future__ import unicode_literals, absolute_import
 

	
 
import os
 
import shutil
 
from unittest import TestCase
 

	
 
from rattail import util
 

	
 

	
 
class ImportTests(TestCase):
 

	
 
    def setUp(self):
 
        dirname = os.path.abspath(os.path.dirname(__file__))
 
        os.mkdir(os.path.join(dirname, 'foo'))
 
        with open(os.path.join(dirname, 'foo', '__init__.py'), 'w') as f:
 
            f.write('\n')
 
        with open(os.path.join(dirname, 'foo', 'bar.py'), 'w') as f:
 
            f.write('\n')
 
        os.mkdir(os.path.join(dirname, 'foo', 'baz'))
 
        with open(os.path.join(dirname, 'foo', 'baz', '__init__.py'), 'w') as f:
 
            f.write('\n')
 

	
 
    def tearDown(self):
 
        shutil.rmtree(os.path.join(os.path.dirname(__file__), 'foo'))
 

	
0 comments (0 inline, 0 general)