def test_django_transport(self): self.assertRaises(ImportError, mask_modules("djkombu")(transport.resolve_transport), "django") self.assertTupleEqual( module_exists("djkombu")(transport.resolve_transport)("django"), ("djkombu.transport", "DatabaseTransport"))
def test_django_transport(self): self.assertRaises( ImportError, mask_modules("djkombu")(transport.resolve_transport), "django") self.assertTupleEqual( module_exists("djkombu")(transport.resolve_transport)("django"), ("djkombu.transport", "DatabaseTransport"))
def test_sqlalchemy_transport(self): self.assertRaises( ImportError, mask_modules("sqlakombu")(transport.resolve_transport), "sqlalchemy") self.assertTupleEqual( module_exists("sqlakombu")( transport.resolve_transport)("sqlalchemy"), ("sqlakombu.transport", "Transport"))
def test_sqlalchemy_transport(self): self.assertRaises( ImportError, mask_modules("sqlakombu")(transport.resolve_transport), "sqlalchemy") self.assertTupleEqual( module_exists("sqlakombu")(transport.resolve_transport)( "sqlalchemy"), ("sqlakombu.transport", "Transport"))