'Test using widget set with multiple widgets'

def testMultipleWidgets(self):

    rf = S3ReusableField('test', 'integer', widgets={'default': self.widget1, 'alternative': self.widget2})
    field = rf()
    self.assertEqual(field.widget, self.widget1)
    field = rf(widget='default')
    self.assertEqual(field.widget, self.widget1)
    field = rf(widget='alternative')
    self.assertEqual(field.widget, self.widget2)
    field = rf(widget=self.widget3)
    self.assertEqual(field.widget, self.widget3)
    self.assertRaises(NameError, rf, widget='other')
