Esempio n. 1
0
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))
Esempio n. 2
0
 def test_find_system_config_directory_with_project(self):
     directory = find.system_config_directory(self.project)
     self.assertTrue(directory.endswith(self.project))
Esempio n. 3
0
 def test_find_system_config_directory(self):
     directory = find.system_config_directory()
     self.assertTrue(os.path.exists(directory))