'test password strength'

def password_strength_test(self):

    if self.__new_password:
        user_data = (self.first_name, self.middle_name, self.last_name, self.email, self.birth_date)
        result = test_password_strength(self.__new_password, u'', None, user_data)
        feedback = result.get(u'feedback', None)
        if (feedback and (not feedback.get(u'password_policy_validation_passed', False))):
            handle_password_test_fail(result)
