Example #1
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"))
Example #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"))
Example #3
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"))
Example #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"))