mirror of
https://git.anonymousland.org/anonymousland/synapse-product.git
synced 2024-10-01 08:25:44 -04:00
pep8
This commit is contained in:
parent
81880beff4
commit
a5468eaadf
@ -1,5 +1,4 @@
|
|||||||
import json
|
import json
|
||||||
import six
|
|
||||||
|
|
||||||
from mock import Mock
|
from mock import Mock
|
||||||
|
|
||||||
|
@ -19,13 +19,11 @@ from mock import Mock
|
|||||||
|
|
||||||
from twisted.test.proto_helpers import MemoryReactorClock
|
from twisted.test.proto_helpers import MemoryReactorClock
|
||||||
|
|
||||||
from synapse.api.errors import InteractiveAuthIncompleteError
|
|
||||||
from synapse.http.server import JsonResource
|
|
||||||
from synapse.rest.client.v2_alpha.register import register_servlets
|
from synapse.rest.client.v2_alpha.register import register_servlets
|
||||||
from synapse.util import Clock
|
from synapse.util import Clock
|
||||||
|
|
||||||
from tests import unittest
|
from tests import unittest
|
||||||
from tests.server import make_request, render, setup_test_homeserver
|
from tests.server import make_request
|
||||||
|
|
||||||
|
|
||||||
class TermsTestCase(unittest.HomeserverTestCase):
|
class TermsTestCase(unittest.HomeserverTestCase):
|
||||||
@ -114,8 +112,8 @@ class TermsTestCase(unittest.HomeserverTestCase):
|
|||||||
request, channel = make_request(b"POST", self.url, request_data)
|
request, channel = make_request(b"POST", self.url, request_data)
|
||||||
self.render(request)
|
self.render(request)
|
||||||
|
|
||||||
# We're interested in getting a response that looks like a successful registration,
|
# We're interested in getting a response that looks like a successful
|
||||||
# not so much that the details are exactly what we want.
|
# registration, not so much that the details are exactly what we want.
|
||||||
|
|
||||||
self.assertEquals(channel.result["code"], b"200", channel.result)
|
self.assertEquals(channel.result["code"], b"200", channel.result)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user