Quick little base test for connection

This commit is contained in:
Ammar Askar 2015-04-03 22:04:45 +05:00
parent ea11461e76
commit 5d56162300
2 changed files with 10 additions and 2 deletions

View File

@ -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
View 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)