def test_id_generator_custom_settings(self): generated_id = Node.generate_id(10, string.ascii_uppercase) assert len(generated_id) == 10 assert all(c.isupper for c in generated_id)
def test_id_generator_default_settings(self): generated_id = Node.generate_id() assert len(generated_id) == 16 assert all(c.islower() or c.isdigit() for c in generated_id)