Пример #1
0
    def test_admin_classes_xbox(self):
        """ Verify only Xbox classes are injected """

        _register_admins()

        self.client.get(reverse("admin:index"))
        self.client.get(
            reverse("admin:auth_user_change", args=(self.user.id, )))

        self.client.get(
            reverse(
                "admin:microsoft_auth_xboxliveaccount_change",
                args=(self.xbox_account.id, ),
            ))
Пример #2
0
    def test_admin_classes_microsoft_auth(self):
        """ Verify only Microsoft Auth classes are injected """

        _register_admins()

        self.client.get(reverse("admin:index"))
        self.client.get(
            reverse("admin:auth_user_change", args=(self.user.id, )))

        self.client.get(
            reverse(
                "admin:microsoft_auth_microsoftaccount_change",
                args=(self.microsoft_account.id, ),
            ))