当前位置: 首页>>代码示例>>Python>>正文


Python mdlaccesscontrol.clsAccessControl函数代码示例

本文整理汇总了Python中mdlaccesscontrol.clsAccessControl函数的典型用法代码示例。如果您正苦于以下问题:Python clsAccessControl函数的具体用法?Python clsAccessControl怎么用?Python clsAccessControl使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了clsAccessControl函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: testHashValidoClaveConSoloEspacios

 def testHashValidoClaveConSoloEspacios(self):
     object = clsAccessControl()
     password = "        " 
     passwordValid = "[email protected]"
     encriptar = object.encript(passwordValid)
     result = object.check_password(encriptar,password)
     self.assertFalse(result,"Clave Valida")     
开发者ID:aldrix,项目名称:Tarea2,代码行数:7,代码来源:SuiteCasosPruebaCheckPwd.py

示例2: testStringSixteenValidInvalid

 def testStringSixteenValidInvalid(self):
     sixteenValidInvalidString = clsAccessControl()
     caso8 = "ynsaciHGSD*+.213"
     aux = "L4l4."
     casoTrue = sixteenValidInvalidString.encript(aux)
     casoResultado = sixteenValidInvalidString.check_password(casoTrue, caso8)
     self.assertFalse(casoResultado)
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:7,代码来源:suiteTestCheckPassword.py

示例3: testEncriptStringSlowChar

    def testEncriptStringSlowChar(self):
        stringSlowChar = clsAccessControl()
        caso = "mdsfg.*+#"
        casoResultado = stringSlowChar.encript(caso)
        self.assertEqual(casoResultado, "")

    #------------------------------------------------------
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:7,代码来源:suiteTest.py

示例4: testStringEightValidInvalid

 def testStringEightValidInvalid(self):
     eightValidInvalidString = clsAccessControl()
     caso8 = "lMan4n4."
     aux = "L4l4."
     casoTrue = eightValidInvalidString.encript(aux)
     casoResultado = eightValidInvalidString.check_password(casoTrue, caso8)
     self.assertFalse(casoResultado)
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:7,代码来源:suiteTestCheckPassword.py

示例5: testStringSixteenValidValid

 def testStringSixteenValidValid(self):
     sixteenValidValidString = clsAccessControl()
     caso16 = "#mcjubJBs86*gTK."
     aux = "#mc45bJBs86*gTK."
     casoTrue = sixteenValidValidString.encript(aux)
     casoResultado = sixteenValidValidString.check_password(casoTrue, caso16)
     self.assertFalse(casoResultado)
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:7,代码来源:suiteTestCheckPassword.py

示例6: testStringInvalidValid8

 def testStringInvalidValid8(self):
     invalidValidString = clsAccessControl()
     caso = "12345678"
     aux = "1Tr45#e."
     casoTrue = invalidValidString.encript(aux)
     casoResultado = invalidValidString.check_password(casoTrue, caso)
     self.assertFalse(casoResultado)
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:7,代码来源:suiteTestCheckPassword.py

示例7: testStringInvalidInvalid16

 def testStringInvalidInvalid16(self):
     invalidInvalidString = clsAccessControl()
     caso = "1234567890asdfgl"
     aux = "tr45#e..*+#kdcsd"
     casoTrue = invalidInvalidString.encript(aux)
     casoResultado = invalidInvalidString.check_password(casoTrue, caso)
     self.assertFalse(casoResultado)
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:7,代码来源:suiteTestCheckPassword.py

示例8: testHashValidoClaveLong17

 def testHashValidoClaveLong17(self):
     object = clsAccessControl()
     password = "xYz2#15gsgshshsah" 
     passwordValid = "[email protected]"
     encriptar = object.encript(passwordValid)
     result = object.check_password(encriptar,password)
     self.assertFalse(result,"Clave Valida")
开发者ID:aldrix,项目名称:Tarea2,代码行数:7,代码来源:SuiteCasosPruebaCheckPwd.py

示例9: testStringValidInvalid14

 def testStringValidInvalid14(self):
     validInvalidString = clsAccessControl()
     caso = "#mcjubs86*gTK."
     aux = "#mcjuBs86*gTK."
     casoTrue = validInvalidString.encript(aux)
     casoResultado = validInvalidString.check_password(casoTrue, caso)
     self.assertFalse(casoResultado)
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:7,代码来源:suiteTestCheckPassword.py

示例10: testHashyClaveDiferentePorUnaLetra

 def testHashyClaveDiferentePorUnaLetra(self):
     object = clsAccessControl()
     password = "[email protected]"
     passwordInvalid = "[email protected]" 
     encriptar = object.encript(passwordInvalid)
     result = object.check_password(encriptar,password)
     self.assertFalse(result,"Clave Valida")
开发者ID:aldrix,项目名称:Tarea2,代码行数:7,代码来源:SuiteCasosPruebaCheckPwd.py

示例11: testHashValidoClaveInvalidaLargo16

 def testHashValidoClaveInvalidaLargo16(self):
     object = clsAccessControl()
     password = "[email protected]+*" 
     passwordValid = "AB*[email protected]"
     encriptar = object.encript(passwordValid)
     result = object.check_password(encriptar,password)
     self.assertFalse(result,"Clave Valida")
开发者ID:aldrix,项目名称:Tarea2,代码行数:7,代码来源:SuiteCasosPruebaCheckPwd.py

示例12: testHashValidoClaveInvalidaLargo8

 def testHashValidoClaveInvalidaLargo8(self):
     object = clsAccessControl()
     password = "[email protected]" 
     passwordValid = "[email protected]"
     encriptar = object.encript(passwordValid)
     result = object.check_password(encriptar,password)
     self.assertFalse(result,"Clave Valida")
开发者ID:aldrix,项目名称:Tarea2,代码行数:7,代码来源:SuiteCasosPruebaCheckPwd.py

示例13: testEncriptStringLower

 def testEncriptStringLower(self):
     stringLower = clsAccessControl()
     caso8 = "abcdefgh"
     caso16 = "abcdefghijklmnop"
     casoResultado8 = stringLower.encript(caso8)
     casoResultado16 = stringLower.encript(caso16)
     self.assertFalse(casoResultado8, None)
     self.assertFalse(casoResultado16, None)  
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:8,代码来源:suiteTest.py

示例14: testEncriptStringUpper

 def testEncriptStringUpper(self):
     stringUpper = clsAccessControl()
     caso8 = "ABCDEFGH"
     caso16 = "ABCDEFGHIJKLMNOP"
     casoResultado8 = stringUpper.encript(caso8)
     casoResultado16 = stringUpper.encript(caso16)
     self.assertFalse(casoResultado8, None)
     self.assertFalse(casoResultado16, None)
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:8,代码来源:suiteTest.py

示例15: testEncriptStringChar

 def testEncriptStringChar(self):
     stringChar = clsAccessControl()
     caso8 = "@*+.$+$#"
     caso16 = "@*+.$+$#@*+.$+$#"
     casoResultado8 = stringChar.encript(caso8)
     casoResultado16 = stringChar.encript(caso16)
     self.assertFalse(casoResultado8, None)
     self.assertFalse(casoResultado16, None)      
开发者ID:oskcolorado,项目名称:Tarea2,代码行数:8,代码来源:suiteTest.py


注:本文中的mdlaccesscontrol.clsAccessControl函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。