Beispiel #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'))
Beispiel #2
0
 def test_when_pycurl_missing(self):
     with set_module_symbol('kombu.async.http.curl', 'pycurl', None):
         with self.assertRaises(ImportError):
             self.Client()
 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()
Beispiel #5
0
 def test_when_pycurl_missing(self):
     with set_module_symbol('kombu.async.http.curl', 'pycurl', None):
         with self.assertRaises(ImportError):
             self.Client()
Beispiel #6
0
 def test_when_no_boto_installed(self):
     with set_module_symbol('kombu.async.aws.sqs', 'boto', None):
         with self.assertRaises(ImportError):
             regions()