Update test_31573.py

Fix method call