/loggerhead/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/loggerhead/trunk

« back to all changes in this revision

Viewing changes to loggerhead/tests/test_simple.py

  • Committer: Ubuntu One Auto Copilot
  • Author(s): Jelmer Vernooij
  • Date: 2022-08-30 10:28:23 UTC
  • mfrom: (533.1.1 trunk)
  • Revision ID: otto-copilot@canonical.com-20220830102823-u3w6efosxw5s086s
Cope with moved errors NoSuchFile and FileExists in newer versions of Breezy.

Merged from https://code.launchpad.net/~jelmer/loggerhead/moved-errors/+merge/429073

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 
18
18
from __future__ import absolute_import
19
19
 
 
20
from html import escape
20
21
import json
21
22
import logging
22
23
import re
23
 
from html import escape
24
24
from io import BytesIO
25
25
 
26
 
from breezy import config
27
26
from breezy.tests import TestCaseWithTransport
28
27
from configobj import ConfigObj
 
28
from breezy import config
 
29
 
 
30
from ..apps.branch import BranchWSGIApp
 
31
from ..apps.http_head import HeadMiddleware
29
32
from paste.fixture import TestApp
30
33
from paste.httpexceptions import HTTPExceptionHandler, HTTPMovedPermanently
31
34
 
32
 
from ..apps.branch import BranchWSGIApp
33
 
from ..apps.http_head import HeadMiddleware
34
 
from .fixtures import SampleBranch
 
35
from .fixtures import (
 
36
    SampleBranch,
 
37
    )
35
38
 
36
39
 
37
40
class BasicTests(TestCaseWithTransport):