def test_keys(self):
        fields = [data_form.Field(var='botname', value='The Jabber Bot'),
                  data_form.Field('boolean', var='public', value=True),
                  data_form.Field('list-multi', var='features',
                                                values=['news', 'search'])]
        form = data_form.Form('submit', fields=fields)
        keys = form.keys()
        self.assertIsInstance(keys, list)
        self.assertEqual(set(['botname', 'public', 'features']),
                         set(keys))
Called when the field is bound to the serializer.
dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_data_form.py/FormTest.test_keys--crossover with--dataset/ETHPy150Open OpenSlides/OpenSlides/openslides/utils/rest_api.py/IdPrimaryKeyRelatedField.bind