'Test that ContentFile can accept both bytes and unicode and that the
retrieved content is of the same type.'

def test_content_file_input_type(self):

    self.assertIsInstance(ContentFile('content').read(), bytes)
    if six.PY3:
        self.assertIsInstance(ContentFile(u'espa\xf1ol').read(), six.text_type)
    else:
        self.assertIsInstance(ContentFile(u'espa\xf1ol').read(), bytes)
