Did I find the right examples for you? yes no Crawl my project Python Jobs
All Samples(90) | Call(81) | Derive(0) | Import(9)
Wrapper class around tempfile.mkdtemp compatible with the "with statement"
src/s/k/skeleton-0.6/skeleton/tests/test_examples.py skeleton(Download)
) from skeleton.examples.mkmodule import BasicModule from skeleton.tests.utils import TestCase, TempDir
def test_write_2clause(self): """Tests write of a 2-clauses BSD license.""" skel = BSD(author='Damien Lebrun', organization='') with TempDir() as tmp:
def test_write_3clause(self): """Tests write of a 3-clauses BSD license.""" skel = BSD(author='Damien Lebrun', organization='Foo inc') with TempDir() as tmp:
def test_write(self): """Tests write of a GPL skeleton""" skel = GPL(author='Damien Lebrun', project_name='Foo') with TempDir() as tmp:
def test_write(self): """Tests write of a LGPL skeleton""" skel = LGPL(author='Damien Lebrun', project_name='Foo') with TempDir() as tmp:
src/s/k/skeleton_stu-0.6.3/skeleton/tests/test_examples.py skeleton_stu(Download)
) from skeleton.examples.mkmodule import BasicModule from skeleton.tests.utils import TestCase, TempDir
def test_write_2clause(self): """Tests write of a 2-clauses BSD license.""" skel = BSD(author='Damien Lebrun', organization='') with TempDir() as tmp:
def test_write_3clause(self): """Tests write of a 3-clauses BSD license.""" skel = BSD(author='Damien Lebrun', organization='Foo inc') with TempDir() as tmp:
def test_write(self): """Tests write of a GPL skeleton""" skel = GPL(author='Damien Lebrun', project_name='Foo') with TempDir() as tmp:
def test_write(self): """Tests write of a LGPL skeleton""" skel = LGPL(author='Damien Lebrun', project_name='Foo') with TempDir() as tmp:
src/s/k/skeleton-HEAD/skeleton/tests/test_examples.py skeleton(Download)
) from skeleton.examples.mkmodule import BasicModule from skeleton.tests.utils import TestCase, TempDir
def test_write_2clause(self): """Tests write of a 2-clauses BSD license.""" skel = BSD(author='Damien Lebrun', organization='') with TempDir() as tmp:
def test_write_3clause(self): """Tests write of a 3-clauses BSD license.""" skel = BSD(author='Damien Lebrun', organization='Foo inc') with TempDir() as tmp:
def test_write(self): """Tests write of a GPL skeleton""" skel = GPL(author='Damien Lebrun', project_name='Foo') with TempDir() as tmp:
def test_write(self): """Tests write of a LGPL skeleton""" skel = LGPL(author='Damien Lebrun', project_name='Foo') with TempDir() as tmp:
src/s/k/skeleton-HEAD/skeleton/tests/test_utils.py skeleton(Download)
from skeleton.core import Var from skeleton.tests.utils import TestCase, TempDir from skeleton.utils import insert_into_file, vars_to_optparser
def test_insert_into_file(self): """Tests skeleton.insert_into_file()""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_with_indent(self): """Tests skeleton.insert_into_file() with indent to keep""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_with_indent_to_lose(self): """Tests skeleton.insert_into_file() with indent to lose""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_and_remove_marker(self): """Tests skeleton.insert_into_file() with keep_marker off""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
src/s/k/skeleton-HEAD/skeleton/tests/test_core.py skeleton(Download)
import unittest from skeleton.tests.utils import TestCase, TempDir from skeleton.core import Skeleton, Var, TemplateKeyError, FileNameKeyError, \ Bool
def test_write_without_src(self): """tests skeleton src pointing to a missing folder""" skel = Skeleton() with TempDir() as tmp_dir: self.assertRaises(AttributeError, skel.write, tmp_dir.path) def test_write_missing_variable(self): """Tests write raise KeyError if a variable is not set.""" skel = MissingVariable() with TempDir() as tmp_dir:
def test_write_create_dst_dir(self): """tests Skeleton.write() create the missing dst directory""" skel = Static() with TempDir() as tmp_dir: skel.write(tmp_dir.join('missing-dir'))
def test_write_static_file(self): """Tests Skeleton.write() with static file""" skel = Static() with TempDir() as tmp_dir: skel.write(tmp_dir.path)
src/s/k/skeleton-0.6/skeleton/tests/test_utils.py skeleton(Download)
from skeleton.core import Var from skeleton.tests.utils import TestCase, TempDir from skeleton.utils import insert_into_file, vars_to_optparser
def test_insert_into_file(self): """Tests skeleton.insert_into_file()""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_with_indent(self): """Tests skeleton.insert_into_file() with indent to keep""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_with_indent_to_lose(self): """Tests skeleton.insert_into_file() with indent to lose""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_and_remove_marker(self): """Tests skeleton.insert_into_file() with keep_marker off""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
src/s/k/skeleton-0.6/skeleton/tests/test_core.py skeleton(Download)
import unittest from skeleton.tests.utils import TestCase, TempDir from skeleton.core import Skeleton, Var, TemplateKeyError, FileNameKeyError, \ Bool
def test_write_without_src(self): """tests skeleton src pointing to a missing folder""" skel = Skeleton() with TempDir() as tmp_dir: self.assertRaises(AttributeError, skel.write, tmp_dir.path) def test_write_missing_variable(self): """Tests write raise KeyError if a variable is not set.""" skel = MissingVariable() with TempDir() as tmp_dir:
def test_write_create_dst_dir(self): """tests Skeleton.write() create the missing dst directory""" skel = Static() with TempDir() as tmp_dir: skel.write(tmp_dir.join('missing-dir'))
def test_write_static_file(self): """Tests Skeleton.write() with static file""" skel = Static() with TempDir() as tmp_dir: skel.write(tmp_dir.path)
src/s/k/skeleton_stu-0.6.3/skeleton/tests/test_utils.py skeleton_stu(Download)
from skeleton.core import Var from skeleton.tests.utils import TestCase, TempDir from skeleton.utils import insert_into_file, vars_to_optparser
def test_insert_into_file(self): """Tests skeleton.insert_into_file()""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_with_indent(self): """Tests skeleton.insert_into_file() with indent to keep""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_with_indent_to_lose(self): """Tests skeleton.insert_into_file() with indent to lose""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
def test_insert_and_remove_marker(self): """Tests skeleton.insert_into_file() with keep_marker off""" with TempDir() as tmp_dir: target = tmp_dir.join('test.txt') with open(target, 'w') as f_target:
src/s/k/skeleton_stu-0.6.3/skeleton/tests/test_core.py skeleton_stu(Download)
import unittest from skeleton.tests.utils import TestCase, TempDir from skeleton.core import Skeleton, Var, TemplateKeyError, FileNameKeyError, \ Bool
def test_write_without_src(self): """tests skeleton src pointing to a missing folder""" skel = Skeleton() with TempDir() as tmp_dir: self.assertRaises(AttributeError, skel.write, tmp_dir.path) def test_write_missing_variable(self): """Tests write raise KeyError if a variable is not set.""" skel = MissingVariable() with TempDir() as tmp_dir:
def test_write_create_dst_dir(self): """tests Skeleton.write() create the missing dst directory""" skel = Static() with TempDir() as tmp_dir: skel.write(tmp_dir.join('missing-dir'))
def test_write_static_file(self): """Tests Skeleton.write() with static file""" skel = Static() with TempDir() as tmp_dir: skel.write(tmp_dir.path)