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"))
Exemple #2
0
    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"))
Exemple #4
0
    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"))