def auth(self, username, password):
        auth = '%s:%s' % (username, password)
        auth = 'Basic %s' % base64.encodestring(auth)
        auth = auth.strip()
        self.extra = {
            'HTTP_AUTHORIZATION': auth,
        }

    # Pass auth **extra to every method
Returns either the function/class path or just the object's repr
dataset/ETHPy150Open adlibre/Adlibre-DMS/adlibre_dms/libraries/adlibre/dms/base_test.py/BasicAuthClient.auth--crossover with--dataset/ETHPy150Open andrewgodwin/channels/channels/utils.py/name_that_thing