

def test_fill_SlugField_with_a_random_str(self):
    person_nickname_field = Person._meta.get_field('nickname')
    self.assertIsInstance(person_nickname_field, SlugField)
    self.assertIsInstance(self.person.nickname, text_type)
    self.assertEqual(len(self.person.nickname), person_nickname_field.max_length)

dataset/ETHPy150Open vandersonmota/model_mommy/test/generic/tests/test_filling_fields.py StringFieldsFilling.test_fill_SlugField_with_a_random_str/original