Exemplo n.º 1
0
 def test_when_boto_missing(self):
     with set_module_symbol('kombu.async.aws.connection', 'boto', None):
         with self.assertRaises(ImportError):
             AsyncConnection(Mock(name='client'))
Exemplo n.º 2
0
 def test_when_pycurl_missing(self):
     with set_module_symbol('kombu.async.http.curl', 'pycurl', None):
         with self.assertRaises(ImportError):
             self.Client()
Exemplo n.º 3
0
 def test_when_boto_missing(self):
     with set_module_symbol('kombu.async.aws.connection', 'boto', None):
         with self.assertRaises(ImportError):
             AsyncConnection(Mock(name='client'))
Exemplo n.º 4
0
 def test_when_no_boto_installed(self):
     with set_module_symbol('kombu.async.aws.sqs', 'boto', None):
         with self.assertRaises(ImportError):
             regions()
Exemplo n.º 5
0
 def test_when_pycurl_missing(self):
     with set_module_symbol('kombu.async.http.curl', 'pycurl', None):
         with self.assertRaises(ImportError):
             self.Client()
Exemplo n.º 6
0
 def test_when_no_boto_installed(self):
     with set_module_symbol('kombu.async.aws.sqs', 'boto', None):
         with self.assertRaises(ImportError):
             regions()