Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("This program will test the proposed 'users' module.")
- if users.isUser("unit") then
- users.deleteUser("unit")
- print()
- end
- print("Testing users.isUser")
- print("This SHOULD return false, since the 'unit' user has not been created yet.")
- print()
- print('users.isUser("unit") >> '..tostring(users.isUser(unit)))
- print()
- print()
- sleep(1)
- print("Testing users.newUser")
- print("This should return true, since the user 'unit' has not been created yet.")
- print('users.newUser("unit", "unit") >> '..tostring(users.newUser('unit', 'unit')))
- print()
- print()
- sleep(1)
- print("Testing users.login")
- print("This should return true, since the login should be successful.")
- print('users.login("unit", "unit") >> '..tostring(users.login("unit", "unit")))
- print()
- print()
- sleep(1)
- print("Testing users.getHome")
- print("It should return '/home/unit'")
- print('users.getHome("unit") >> '..tostring(users.getHome("unit")))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement