本文整理汇总了Python中ipatests.test_xmlrpc.tracker.user_plugin.UserTracker.make_fixture方法的典型用法代码示例。如果您正苦于以下问题:Python UserTracker.make_fixture方法的具体用法?Python UserTracker.make_fixture怎么用?Python UserTracker.make_fixture使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ipatests.test_xmlrpc.tracker.user_plugin.UserTracker
的用法示例。
在下文中一共展示了UserTracker.make_fixture方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: user_radius
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user_radius(request):
""" User tracker fixture for testing users with radius user name """
tracker = UserTracker(name=u'radiususer', givenname=u'radiususer',
sn=u'radiususer1',
ipatokenradiususername=u'radiususer')
tracker.track_create()
tracker.attrs.update(
objectclass=objectclasses.user + [u'ipatokenradiusproxyuser']
)
return tracker.make_fixture(request)
示例2: user_npg2
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user_npg2(request, group):
""" User tracker fixture for testing users with no private group """
tracker = UserTracker(name=u'npguser2', givenname=u'Npguser',
sn=u'Npguser2', noprivate=True, gidnumber=1000)
tracker.track_create()
del tracker.attrs['mepmanagedentry']
tracker.attrs.update(
gidnumber=[u'1000'], description=[], memberof_group=[group.cn],
objectclass=add_oc(objectclasses.user_base, u'ipantuserattrs')
)
return tracker.make_fixture(request)
示例3: certmap_user
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def certmap_user(request):
user = UserTracker(CERTMAP_USER, u'certmap', u'user')
return user.make_fixture(request)
示例4: user_activated
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user_activated(request):
tracker = UserTracker(u'suser2', u'staged', u'user')
return tracker.make_fixture(request)
示例5: user5
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user5(request):
tracker = UserTracker(u'tuser', u'test', u'user')
return tracker.make_fixture(request)
示例6: user3
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user3(request):
tracker = UserTracker(u'auser2', u'active', u'user')
return tracker.make_fixture(request)
示例7: user2
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user2(request):
tracker = UserTracker(u'suser3', u'staged', u'user')
return tracker.make_fixture(request)
示例8: manager1
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def manager1(request):
""" User tracker used as a manager account """
tracker = UserTracker(name=u'mscott', sn=u'Manager1',
givenname=u'Automember test manager user1')
return tracker.make_fixture(request)
示例9: admin2
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def admin2(request):
tracker = UserTracker(name=u'admin2', givenname=u'Second', sn=u'Admin')
return tracker.make_fixture(request)
示例10: renameduser
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def renameduser(request):
tracker = UserTracker(name=u'ruser1', givenname=u'Ruser', sn=u'Ruser1')
return tracker.make_fixture(request)
示例11: user2
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user2(request):
tracker = UserTracker(name=u'user2', givenname=u'Test2', sn=u'User2')
return tracker.make_fixture(request)
示例12: user
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user(request):
tracker = UserTracker(name=u'user_for_otp_test',
givenname=u'Test', sn=u'User for OTP')
return tracker.make_fixture(request)
示例13: user_min
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user_min(request):
""" User tracker fixture for testing user with uid no specified """
tracker = UserTracker(givenname=u'Testmin', sn=u'Usermin')
return tracker.make_fixture(request)
示例14: testuser
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def testuser(request):
tracker = UserTracker(name=u"testuser", givenname=u"John", sn=u"Donne")
return tracker.make_fixture(request)
示例15: user4
# 需要导入模块: from ipatests.test_xmlrpc.tracker.user_plugin import UserTracker [as 别名]
# 或者: from ipatests.test_xmlrpc.tracker.user_plugin.UserTracker import make_fixture [as 别名]
def user4(request):
tracker = UserTracker(name=u"tuser4", givenname=u"Test4", sn=u"User4")
return tracker.make_fixture(request)