def test_become_implicit(self): # os.system('tree') insideout.main([]) # os.system('tree') ref = ["LICENSE.txt", "README.md", "package", "setup.py", "tox.ini"] files = os.listdir(".") self.assertTrue(ref == sorted(files)) ref = ["__init__.py", "main.py", "tools.py"] files = os.listdir("package") self.assertTrue(ref == sorted(files))
def test_become_explicit(self): insideout.main([]) files = os.listdir('.') self.assertTrue('subpackage1' in sorted(files)) self.assertTrue('subpackage2' in sorted(files)) files = os.listdir('subpackage1') self.assertTrue('__init__.py' in sorted(files)) self.assertTrue('comms.py' in sorted(files)) files = os.listdir('subpackage2') self.assertTrue('__init__.py' in sorted(files)) self.assertTrue('parsers.py' in sorted(files))
def test_become_implicit(self): #os.system('tree') insideout.main([]) #os.system('tree') files = os.listdir('package') self.assertTrue('subpackage1' in sorted(files)) self.assertTrue('subpackage2' in sorted(files)) files = os.listdir('package/subpackage1') self.assertTrue('__init__.py' in sorted(files)) self.assertTrue('comms.py' in sorted(files)) files = os.listdir('package/subpackage2') self.assertTrue('__init__.py' in sorted(files)) self.assertTrue('parsers.py' in sorted(files))
def test_become_explicit(self): insideout.main([]) ref = ['README.md', '__dev__', '__init__.py', 'main.py', 'tools.py'] files = os.listdir('.') self.assertTrue(ref == sorted(files)) ref = ['LICENSE.txt', 'package_name.txt', 'setup.py', 'tox.ini'] files = os.listdir('__dev__') self.assertTrue(ref == sorted(files)) self.assertTrue(os.path.exists('__dev__/package_name.txt')) self.assertTrue(os.path.isfile('__dev__/package_name.txt')) with open('__dev__/package_name.txt') as f: content = f.read().strip() self.assertTrue(content == 'package')
def test_become_implicit(self): insideout.main([]) files = os.listdir(".") self.assertTrue(".git" in files)