Пример #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))