'Testing adding validation to the field when it\'s stored in the reported.
:return:'

def test_reported_field_validation(self):

    msg = self.Message()
    form = msg['form']
    field = form.addReported(var='f1', ftype='text-single', label='Text')
    validation = field['validate']
    validation.set_basic(True)
    form.addItem({'f1': 'Some    text!'})
    self.check(msg, '\n                                        <message>\n                                                <x    xmlns="jabber:x:data"    type="form">\n                                                        <reported>\n                                                                <field    var="f1"    type="text-single"    label="Text">\n                                                                        <validate    xmlns="http://jabber.org/protocol/xdata-validate">\n                                                                                <basic    />\n                                                                        </validate>\n                                                                </field>\n                                                        </reported>\n                                                        <item>\n                                                                <field    var="f1">\n                                                                        <value>Some    text!</value>\n                                                                </field>\n                                                        </item>\n                                                </x>\n                                        </message>\n                                ')
