Ejemplo 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'))
Ejemplo 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()
Ejemplo 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'))
Ejemplo 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()
Ejemplo 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()
Ejemplo 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()