def test_hex_chars(self):
        value = self.sd.hex_chars()
        self.assertTrue(isinstance(value, six.string_types))
        self.assertTrue(len(value) >= 1)
        self.assertTrue(len(value) <= 5)

        value = self.sd.hex_chars(5, 5)
        self.assertTrue(len(value) == 5)

        self.assertEqual(self.sd.hex_chars(0, 0), '')

        with self.assertRaises(ParameterError):
            value = self.sd.hex_chars(10, 5)
dataset/ETHPy150Open kaleidos/django-sampledatahelper/tests/tests.py/TestOtherHelpers.test_hex_chars/original