16 lines
414 B
Python
16 lines
414 B
Python
|
from catfish.project import Project
|
||
|
from tests import BaseTestCase
|
||
|
|
||
|
|
||
|
class ProjectTestCase(BaseTestCase):
|
||
|
def setUp(self):
|
||
|
super().setUp()
|
||
|
self.project = Project(self.EXAMPLE_DIR)
|
||
|
|
||
|
def test_exists(self):
|
||
|
self.assertTrue(self.project.exists())
|
||
|
|
||
|
def test_cant_create_nonexistent_directory(self):
|
||
|
with self.assertRaises(AssertionError):
|
||
|
Project("/nonexistent")
|