Example #1
0
    def test_greeting_intro(self, user, text):
        g = Greeting()
        reply, confidence = g.listen(text, user=user)

        assert confidence == 1.0
        assert reply is not None
        assert reply == "Hello, what is your name?"
Example #2
0
    def test_initial_intro(self, user, text):
        g = Greeting()
        reply, confidence = g.listen(text, user=user)

        assert confidence == 1.0
        assert reply is not None
        assert reply == "Hello, Jake!"

        if user is None:
            user = "******"

        assert user in g.participants
        assert g.participants[user] == 'Jake'