Python Code Challenge

220 - Write a function to test if a given list contains duplicates and write test cases for it.