Driving license in Norway

Hello,

I am German and I am planning to move maybe to Norway. I had a driving license in Germany, but it was revoked and in order to get it back, I would have to make a long and expensive test, which I did not do so far. Now my question: If I life for half a year in Norway, can I then take the driving test there and get a Norwegian driving license? Or will they tell me that I have to get it back in Germany?