Example #1
0
def test_valid_token4():
    assert utils.valid_token('wrong', 'pollo', 'resetpwd') == False
Example #2
0
def test_valid_token2():
    assert utils.valid_token('69a72494ba06690eccd6a668a6f24393', 'pollo', 'resetpwd') == True
Example #3
0
def test_valid_token3():
    assert utils.valid_token('wrong', 'pollo', 'validate_email') == False
Example #4
0
def test_valid_token1():
    assert utils.valid_token('88618f30250fbc50cbe78d85d827657a', 'pollo', 'validate_email') == True