Exemplo n.º 1
0
 def test_get_any(self):
     Q.get_current_connections()
Exemplo n.º 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))
Exemplo n.º 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))
Exemplo n.º 4
0
 def test_get_any(self):
     Q.get_current_connections()
Exemplo n.º 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))
Exemplo n.º 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))