def METHOD_NAME(self):
    # noinspection PyUnresolvedReferences
    with patch.object(self.plugin.tracker, 'login', side_effect=Exception):
        credentials = {'username': self.helper.real_login, 'password': self.helper.real_password}
        self.plugin.update_credentials(credentials)
        self.assertEqual(self.plugin.login(), LoginResult.Unknown)