Esempio 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'))
Esempio 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()
Esempio 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'))
 def test_when_no_boto_installed(self):
     with set_module_symbol('kombu.async.aws.sqs', 'boto', None):
         with self.assertRaises(ImportError):
             regions()
Esempio 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()
Esempio 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()