mirror of
https://github.com/ammaraskar/pyCraft.git
synced 2024-11-16 07:15:24 +01:00
Quick little base test for connection
This commit is contained in:
parent
ea11461e76
commit
5d56162300
@ -6,10 +6,9 @@ import socket
|
||||
import time
|
||||
import select
|
||||
|
||||
import encryption
|
||||
|
||||
from .types import VarInt
|
||||
from . import packets
|
||||
from . import encryption
|
||||
from .. import PROTOCOL_VERSION
|
||||
|
||||
|
||||
|
9
tests/test_connection.py
Normal file
9
tests/test_connection.py
Normal file
@ -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)
|
Loading…
Reference in New Issue
Block a user