Пример #1
0
 def test_calls_https(self):
     with patch.object(reactor, 'connectTCP') as f:
         connectDeviceHive('https://example.com', self.factory)
     self.assertTrue(f.called)
Пример #2
0
 def test_calls_https(self):
     with patch.object(reactor, 'connectTCP') as f:
         connectDeviceHive('https://example.com', self.factory)
     self.assertTrue(f.called)
Пример #3
0
 def test_calls_http(self):
     with patch('twisted.internet.reactor.connectTCP') as f:
         connectDeviceHive('http://example.com', self.factory)
     self.assertTrue(f.called)
Пример #4
0
 def test_calls_http(self):
     with patch('twisted.internet.reactor.connectTCP') as f:
         connectDeviceHive('http://example.com', self.factory)
     self.assertTrue(f.called)