def test_not_github(self): """Tests that get_project_src_path returns the correct result not on GitHub.""" project_src_path = os.path.join('/', self.project_src_dir_name) os.environ['PROJECT_SRC_PATH'] = project_src_path self.assertEqual( config_utils.get_project_src_path(self.workspace, is_github=True), project_src_path)
def test_unset(self): """Tests that get_project_src_path returns None when no PROJECT_SRC_PATH is set.""" self.assertIsNone( config_utils.get_project_src_path(self.workspace, is_github=True))