

def test_hexstring_generator(self):
    hex_str = AttributesGenerator.hexstring()
    self.assertEqual(len(hex_str), 8)
    self.assertTrue(all(hex_str))
    hex_str = AttributesGenerator.hexstring(32)
    hex_str.assertEqual(len(hex_str), 32)
    self.assertTrue(all(hex_str))

dataset/ETHPy150Open openstack/fuel-web/nailgun/nailgun/test/unit/test_attributes_generators.py TestAttributesGenerators.test_hexstring_generator/VarMisuse@49/67 `self`->`hex_str`