def METHOD_NAME(self):
    self.ldap_lookup.uid_regex = "_"
    michael_bolton = self.ldap_lookup.get_metadata_from_uid("michael_bolton")
    # since michael_bolton has an underscore, it should pass regex and return a result
    self.assertEqual(michael_bolton.get("mail"), "michael_bolton@initech.com")
    milton = self.ldap_lookup.get_metadata_from_uid("123456")
    # since '123456' doesn't have an underscore, it should return {}
    self.assertEqual(milton, {})