def test_can_create_server_ConnectionImpl(self): c = ConnectionImpl(0.0, self.name, True) self.assertEqual(c.is_server(), True)
def test_can_create_connection_of_unknown_type(self): c = ConnectionImpl(0.0, self.name, None) self.assertEqual(c.is_server(), None)
def test_can_create_client_ConnectionImpl(self): c = ConnectionImpl(0.0, self.name, False) self.assertEqual(c.is_server(), False)