~ubuntu-branches/debian/stretch/bzr-xmloutput/stretch

« back to all changes in this revision

Viewing changes to tests/test_service.py

  • Committer: Bazaar Package Importer
  • Author(s): Jelmer Vernooij
  • Date: 2010-10-10 00:19:51 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20101010001951-thj7ik68pqj8w120
Tags: 0.8.6+bzr147-1
* Actually use source format 3.
* New upstream snapshot.
 + Fixes bzr 2.1 breaking most of the features of the XML-RPC server.
   Closes: #576190
* Bump standards version to 3.9.1 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
3
3
import xmlrpclib
4
4
import threading
5
5
 
 
6
from bzrlib import (
 
7
    tests,
 
8
    ui,
 
9
    )
6
10
from bzrlib.plugins.xmloutput.service import *
7
 
from bzrlib import tests
8
11
 
9
12
 
10
13
class TestXmlRpcServer(tests.TestCase):
34
37
        self.assertEquals(response, "world!")
35
38
 
36
39
    def test_run_bzr(self):
 
40
        self.permit_source_tree_branch_repo()
37
41
        exit, out, err = self.client.run_bzr(['bzr', 'xmlversion'], '.')
38
42
        self.assertEquals(exit, 0)
39
43
        self.assertEquals(err, "")
40
44
        self.assertNotEquals(out.data, "")
41
 
        #self.assertEquals(out.data, "")
42
45
 
43
46
    def test_custom_commands_main__should_support_non_ascii_unicode(self):
44
47
        from xmlrpclib import Fault