Exemplo n.º 1
0
    def test_serialize_error_with_sequence(self):
        resp = response.error('fail!')

        self.assertEqual('?99 fail!\n\n',
                         response.serialize(self.cmd_with_sequence, resp))
Exemplo n.º 2
0
    def test_serialize_error_with_sequence(self):
        resp = response.error("fail!")

        self.assertEqual("?99 fail!\n\n", response.serialize(self.cmd_with_sequence, resp))
Exemplo n.º 3
0
    def test_serialize_error(self):
        resp = response.error('fail!')

        self.assertEqual('? fail!\n\n', response.serialize(self.cmd, resp))
Exemplo n.º 4
0
    def test_serialize_error(self):
        resp = response.error("fail!")

        self.assertEqual("? fail!\n\n", response.serialize(self.cmd, resp))