def __init__(self, *args, **kwargs):
        super(TestBasic, self).__init__(*args, **kwargs)

        self.conf = self._get_configuration()

        if self.conf.get('smoke', False):
            self.random_user = "test@restmail.net"
            self.auth = RawAuth("Bearer %s" % self.conf.get('token'))
        else:
            self.random_user = uuid.uuid4().hex
            self.auth = HTTPBasicAuth(self.random_user, 'secret')

        # Create at least some records for this user
        self.nb_initial_records = random.randint(3, 100)
Initialization that happens once per user.
dataset/ETHPy150Open mozilla-services/readinglist/loadtests/loadtest/__init__.py/TestBasic.__init__