[tests] Update user_tests.py due to FutureWarning
[tests] Update user_tests.py due to FutureWarning

Change-Id: Ieee499009adb46d1ce2e64c97960d7e441b92f47

wikimedia/pywikibot-core,wikimedia/pywikibot-core