def CreateUser(self, username):
    user = aff4.FACTORY.Create("aff4:/users/%s" % username, "GRRUser",
                               token=self.token.SetUID())
    user.Flush()
    return user
Creates a user.
dataset/ETHPy150Open google/grr/grr/lib/test_lib.py/GRRBaseTest.CreateUser