(self, *args, **kwargs)
| 1830 | def multi_user_decorator(func): |
| 1831 | @wraps(func) |
| 1832 | def wrapper(self, *args, **kwargs): |
| 1833 | main_tester = self.__class__.tester |
| 1834 | try: |
| 1835 | # Login with non-admin_user |
| 1836 | test_user = get_test_user(self, user) |
| 1837 | self.setTestClient(test_user) |
| 1838 | |
| 1839 | # Call 'runTest' with new test client |
| 1840 | func(self, *args, **kwargs) |
| 1841 | finally: |
| 1842 | # Restore the original user and driver |
| 1843 | self.__class__.tester = main_tester |
| 1844 | |
| 1845 | return wrapper |
| 1846 |
nothing calls this directly
no test coverage detected