Quick little base test for connection
This commit is contained in:
1 parent
ea11461e76
commit
5d56162300
2 files changed
+10
-2
No files matched your search
@@ -6,10 +6,9 @@ import socket
|
|||||||
import time
|
import time
|
||||||
import select
|
import select
|
||||||
|
|
||||||
import encryption
|
|
||||||
|
|
||||||
from .types import VarInt
|
from .types import VarInt
|
||||||
from . import packets
|
from . import packets
|
||||||
|
from . import encryption
|
||||||
from .. import PROTOCOL_VERSION
|
from .. import PROTOCOL_VERSION
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,9 @@
|
|||||||
|
import unittest
|
||||||
|
import minecraft.networking.connection as conn
|
||||||
|
|
||||||
|
|
||||||
|
class ConnectionTest(unittest.TestCase):
|
||||||
|
|
||||||
|
def test_connection(self):
|
||||||
|
connection = conn.Connection("localhost", 25565, None)
|
||||||
|
self.assertFalse(connection.options.compression_enabled)
|
||||||
Reference in new issue
Block a user