from os.path import exists, isdir
from tempfile import gettempdir
from unittest import TestCase
from no_drama.context import temp_directory


class TestTempDirectory(TestCase):

    def test_temp_directory(self):
        with temp_directory() as tempdir:
            self.assertTrue(exists(tempdir))
            self.assertTrue(isdir(tempdir))
            self.assertTrue(tempdir.startswith(gettempdir()))

c98411486343183efa6ace09b621a0a39a1da099
<mask token>

<mask token>


class TestTempDirectory(TestCase):
    <mask token>

<mask token>


class TestTempDirectory(TestCase):

    def test_temp_directory(self):
        with temp_directory() as tempdir:
            self.assertTrue(exists(tempdir))
            self.assertTrue(isdir(tempdir))
            self.assertTrue(tempdir.startswith(gettempdir()))

from os.path import exists, isdir
from tempfile import gettempdir
from unittest import TestCase
from no_drama.context import temp_directory


class TestTempDirectory(TestCase):

    def test_temp_directory(self):
        with temp_directory() as tempdir:
            self.assertTrue(exists(tempdir))
            self.assertTrue(isdir(tempdir))
            self.assertTrue(tempdir.startswith(gettempdir()))
