def METHOD_NAME(self):
    # now we'll do some tests requiring the uid to be 6 characters only and digits
    self.ldap_lookup.uid_regex = "^[0-9]{6}$"
    milton = self.ldap_lookup.get_metadata_from_uid("123456")
    milton_email = milton.get("mail")
    self.assertEqual(milton_email, "milton@initech.com")