Пример #1
0
def test_login3():
    ems1 = EMS(userCSV='user.csv')
    assert (ems1.login(
        '*****@*****.**',
        'pass30778') == (ems1.getUserByEmail('*****@*****.**'),
                         'Successfully logged in...'))
    registerEMS(None)
Пример #2
0
def test_login4():
    ems1 = EMS(userCSV='user.csv')
    assert (ems1.login('*****@*****.**',
                       'pass27204') == (None, 'Wrong password!'))
Пример #3
0
def test_login2():
    ems1 = EMS(userCSV='user.csv')
    assert (ems1.login('*****@*****.**',
                       'hahaha') == (None, 'Wrong password!'))
    registerEMS(None)
Пример #4
0
def test_login1():
    ems1 = EMS(userCSV='user.csv')
    assert (ems1.login('*****@*****.**',
                       'hahaha') == (None, 'User does not exist!'))
    registerEMS(None)