Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/k/r/krankshaft-0.3.6/tests/krankshaft/test_resource.py   krankshaft(Download)
    def test_files_file(self):
        tmpdir = tempfile.mkdtemp()
        try:
            with self.settings(MEDIA_ROOT=tmpdir), \
                 tempfile.NamedTemporaryFile() as tmp:
    def test_files_image(self):
        tmpdir = tempfile.mkdtemp()
        try:
            with self.settings(MEDIA_ROOT=tmpdir), \
                 tempfile.NamedTemporaryFile() as tmp: