def test_return_project_root(self, mock_pwd): state = State() state.set_project_name('foo') self.assertEqual(state.get_project_root(), '/bar/foo')