예제 #1
0
파일: test_find.py 프로젝트: otmsol/dodai
def test_find_system_config_directory():
    """Test to make sure the system config directory is returned.  Also checks
    to see if the passed in project_name is appended to the path in the
    returned value.
    """
    dir = find.system_config_directory()
    nt.ok_(os.path.exists(dir))

    project_name = 'test'
    dir = find.system_config_directory(project_name)
    nt.ok_(dir.endswith(project_name))
예제 #2
0
 def test_find_system_config_directory_with_project(self):
     directory = find.system_config_directory(self.project)
     self.assertTrue(directory.endswith(self.project))
예제 #3
0
 def test_find_system_config_directory(self):
     directory = find.system_config_directory()
     self.assertTrue(os.path.exists(directory))