示例#1
0
    def test_response_is_returned(self):
        """
        For consistency across io adapters, the
        no output adaper should return the output value.
        """
        adapter = NoOutputAdapter()
        statement = Statement("The test statement to process is here.")

        self.assertEqual(adapter.process_response(statement), statement.text)
    def test_response_is_returned(self):
        """
        For consistency across io adapters, the
        no output adaper should return the output value.
        """
        adapter = NoOutputAdapter()
        statement = Statement("The test statement to process is here.")

        self.assertEqual(
            adapter.process_response(statement),
            statement.text
        )
class NoOutputAdapterTests(TestCase):
    """
    The no output adapter is designed to allow
    the chat bot to be used like a library, without
    assuming any single form of communication
    is used.
    """
    def setUp(self):
        self.adapter = NoOutputAdapter(None)

    def test_response_is_returned(self):
        """
        For consistency across io adapters, the
        no output adaper should return the output value.
        """
        statement = Statement("The test statement to process is here.")

        self.assertEqual(self.adapter.process_response(statement),
                         statement.text)
class NoOutputAdapterTests(TestCase):
    """
    The no output adapter is designed to allow
    the chat bot to be used like a library, without
    assuming any single form of communication
    is used.
    """

    def setUp(self):
        self.adapter = NoOutputAdapter()

    def test_response_is_returned(self):
        """
        For consistency across io adapters, the
        no output adaper should return the output value.
        """
        statement = Statement("The test statement to process is here.")

        self.assertEqual(
            self.adapter.process_response(statement),
            statement.text
        )
 def setUp(self):
     self.adapter = NoOutputAdapter(None)
 def setUp(self):
     self.adapter = NoOutputAdapter()