def test_set(self): session_id = 11 self.session = env_api.Session() result = self.session.set(self.mock_request, self.env_id, session_id) self.assertIsNone(result)
def test_get_or_create(self, mock_api): self.session = env_api.Session() result = self.session.get_or_create(self.mock_request, self.env_id) self.assertIsNotNone(result) env_api.api.muranoclient.assert_called_once_with(self.mock_request)