'Test that field.strptime doesn\'t raise an UnicodeEncodeError (#16123)'

def test_datefield_strptime(self):

    f = DateField()
    try:
        f.strptime(u'31    \u043c\u0430\u044f    2011', u'%d-%b-%y')
    except Exception as e:
        self.assertEqual(e.__class__, ValueError)
