def test_get_any(self):
     Q.get_current_connections()
 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))
 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))
Exemple #4
0
 def test_get_any(self):
     Q.get_current_connections()
Exemple #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))
Exemple #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))