Create test_switchdpidassignment.py