Exemplo n.º 1
0
    def test_tr2(self):
        input = Mock(group=lambda x: 'Estoy bien')
        tr2(self.phenny, input)

        out = self.phenny.reply.call_args[0][0]
        m = re.match("^\"I'm fine\" \(es to en, .*\)$", out, flags=re.UNICODE)
        self.assertTrue(m)
Exemplo n.º 2
0
    def test_tr2(self):
        input = Mock(group=lambda x: 'Estoy bien')
        tr2(self.phenny, input)

        out = self.phenny.reply.call_args[0][0]
        m = re.match("^\"I'm fine\" \(es to en, .*\)$",
                out, flags=re.UNICODE)
        self.assertTrue(m)
Exemplo n.º 3
0
    def test_translate_bracketnull(self):
        input = Mock(group=lambda x: 'Moja je lebdjelica puna jegulja')
        tr2(self.phenny, input)

        self.assertIn("My hovercraft is full of eels",
                      self.phenny.reply.call_args[0][0])
Exemplo n.º 4
0
    def test_tr2(self):
        input = Mock(group=lambda x: 'Estoy bien')
        tr2(self.phenny, input)

        self.assertIn("'m fine", self.phenny.reply.call_args[0][0])