'Test using widget set with single widget'

def testSingleWidget(self):

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