# Path: hotness/responses/response.py
# class Response:
#     """
#     Abstract class for response object. Defines shared methods
#     for both Success and Failure response.
#     """
# 
#     def __bool__(self) -> bool:
#         """
#         This method is used for checking if the response is failure or success.
#         Needs to be implemented by every child class.
# 
#         Returns:
#            True if success, False if failure.
#         """
#         raise NotImplementedError
# 
#     @property
#     def value(self) -> Any:
#         """
#         This property should contain the value of the response, either error or data.
#         Needs to be implemented by every child.
# 
#         Returns:
#             Any value that represents the response from use case.
#         """
#         raise NotImplementedError


import pytest
from hotness.responses.response import Response
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.



class TestResponseBool:
    """
    Test class for `hotness.responses.response.Response.__bool__` method.
    """

    def test_bool(self):
        """
        Assert that abstract class returns NotImplementedError.
        """
        response = Response()

        with pytest.raises(NotImplementedError):
            response.__bool__()

    def test_value(self):
        """
        Assert that abstract class returns NotImplementedError.
        """

# Path: hotness/responses/response.py
# class Response:
#     """
#     Abstract class for response object. Defines shared methods
#     for both Success and Failure response.
#     """
# 
#     def __bool__(self) -> bool:
#         """
#         This method is used for checking if the response is failure or success.
#         Needs to be implemented by every child class.
# 
#         Returns:
#            True if success, False if failure.
#         """
#         raise NotImplementedError
# 
#     @property
#     def value(self) -> Any:
#         """
#         This property should contain the value of the response, either error or data.
#         Needs to be implemented by every child.
# 
#         Returns:
#             Any value that represents the response from use case.
#         """
#         raise NotImplementedError


# Path: tests/responses/test_response.py
import pytest
from hotness.responses.response import Response

#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.



class TestResponseBool:
    """
    Test class for `hotness.responses.response.Response.__bool__` method.
    """

    def test_bool(self):
        """
        Assert that abstract class returns NotImplementedError.
        """
        response = Response()

        with pytest.raises(NotImplementedError):
            response.__bool__()

    def test_value(self):
        """
        Assert that abstract class returns NotImplementedError.
        """

        response = Response()