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