[tor-commits] [stem/master] Rename test module
atagar at torproject.org
atagar at torproject.org
Sun Jan 21 02:04:04 UTC 2018
commit 3e2de2a6b6607773606faa549c2dd3622bc183fd
Author: Damian Johnson <atagar at torproject.org>
Date: Tue Jan 16 18:33:29 2018 -0800
Rename test module
---
test/settings.cfg | 2 +-
test/unit/client/{types.py => address.py} | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/test/settings.cfg b/test/settings.cfg
index 96e2d302..78e77dd1 100644
--- a/test/settings.cfg
+++ b/test/settings.cfg
@@ -229,8 +229,8 @@ test.unit_tests
|test.unit.response.authchallenge.TestAuthChallengeResponse
|test.unit.response.protocolinfo.TestProtocolInfoResponse
|test.unit.response.mapaddress.TestMapAddressResponse
-|test.unit.client.types.TestClientTypes
|test.unit.client.size.TestSize
+|test.unit.client.address.TestAddress
|test.unit.client.cell.TestCell
|test.unit.connection.authentication.TestAuthenticate
|test.unit.connection.connect.TestConnect
diff --git a/test/unit/client/types.py b/test/unit/client/address.py
similarity index 78%
rename from test/unit/client/types.py
rename to test/unit/client/address.py
index a85a0b8d..bb844264 100644
--- a/test/unit/client/types.py
+++ b/test/unit/client/address.py
@@ -1,5 +1,5 @@
"""
-Unit tests for the types in stem.client.
+Unit tests for stem.client.Address.
"""
import unittest
@@ -7,8 +7,8 @@ import unittest
from stem.client import Address
-class TestClientTypes(unittest.TestCase):
- def test_address_ipv4(self):
+class TestAddress(unittest.TestCase):
+ def test_ipv4(self):
addr, content = Address.pop('\x04\x04\x7f\x00\x00\x01\x01\x04\x04aq\x0f\x02\x00\x00\x00\x00')
self.assertEqual('\x01\x04\x04aq\x0f\x02\x00\x00\x00\x00', content)
More information about the tor-commits
mailing list