def test_reduce(self, *modules): from celery.backends.cassandra import CassandraBackend assert loads(dumps(CassandraBackend(app=self.app)))
def test_reduce(self): with mock_module(*CASSANDRA_MODULES): from celery.backends.cassandra import CassandraBackend self.assertTrue(loads(dumps(CassandraBackend(app=self.app))))
def test_reduce(self): with mock_module('pycassa'): from celery.backends.cassandra import CassandraBackend self.assertTrue(loads(dumps(CassandraBackend(app=self.get_app()))))