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