def test_login3(): ems1 = EMS(userCSV='user.csv') assert (ems1.login( '*****@*****.**', 'pass30778') == (ems1.getUserByEmail('*****@*****.**'), 'Successfully logged in...')) registerEMS(None)
def test_login4(): ems1 = EMS(userCSV='user.csv') assert (ems1.login('*****@*****.**', 'pass27204') == (None, 'Wrong password!'))
def test_login2(): ems1 = EMS(userCSV='user.csv') assert (ems1.login('*****@*****.**', 'hahaha') == (None, 'Wrong password!')) registerEMS(None)
def test_login1(): ems1 = EMS(userCSV='user.csv') assert (ems1.login('*****@*****.**', 'hahaha') == (None, 'User does not exist!')) registerEMS(None)