Esempio n. 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
        )
Esempio n. 3
0
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
        )
Esempio n. 5
0
 def setUp(self):
     self.adapter = NoOutputAdapter(None)
 def setUp(self):
     self.adapter = NoOutputAdapter()