示例#1
0
 def test_get_any(self):
     Q.get_current_connections()
示例#2
0
 def test_remove_localhost(self):
     if self.localhost_is_connected():
         before = Q.get_current_connections()
         self.disconnect_localhost()
         after = Q.get_current_connections()
         self.assertEqual(len(before) - 1, len(after))
示例#3
0
 def test_add_localhost(self):
     if not self.localhost_is_connected():
         before = Q.get_current_connections()
         self.connect_localhost()
         after = Q.get_current_connections()
         self.assertEqual(len(before) + 1, len(after))
示例#4
0
 def test_get_any(self):
     Q.get_current_connections()
示例#5
0
 def test_remove_localhost(self):
     if self.localhost_is_connected():
         before = Q.get_current_connections()
         self.disconnect_localhost()
         after = Q.get_current_connections()
         self.assertEqual(len(before) - 1, len(after))
示例#6
0
 def test_add_localhost(self):
     if not self.localhost_is_connected():
         before = Q.get_current_connections()
         self.connect_localhost()
         after = Q.get_current_connections()
         self.assertEqual(len(before) + 1, len(after))