Пример #1
0
 def test_can_create_server_ConnectionImpl(self):
     c = ConnectionImpl(0.0, self.name, True)
     self.assertEqual(c.is_server(), True)
Пример #2
0
 def test_can_create_connection_of_unknown_type(self):
     c = ConnectionImpl(0.0, self.name, None)
     self.assertEqual(c.is_server(), None)
Пример #3
0
 def test_can_create_client_ConnectionImpl(self):
     c = ConnectionImpl(0.0, self.name, False)
     self.assertEqual(c.is_server(), False)