def METHOD_NAME(self):
    """
    Test population of created_on_site attribute by activation keys.
    """
    call_command(
        "populate_created_on_site_user_attribute",
        "--activation-keys", self.activation_keys,
        "--site-domain", self.site.domain
    )
    for register_user in self.registered_users:
        assert UserAttribute.get_user_attribute(register_user.user, CREATED_ON_SITE) == self.site.domain
    # Populate 'created_on_site' attribute with different site domain
    call_command(
        "populate_created_on_site_user_attribute",
        "--activation-keys", self.activation_keys,
        "--site-domain", self.site_other.domain
    )
    for register_user in self.registered_users:
        # 'created_on_site' attribute already exists. Attribute's value will not change
        assert UserAttribute.get_user_attribute(register_user.user, CREATED_ON_SITE) != self.site_other.domain