def test_chkDup_withNoDuplicates(self): """ Check to see if duplicate names return no errors """ nonDupNames = ['test1','test2','test3','test4'] errList=['','','',''] resultDup = createGameView._chkDup(nonDupNames,errList) self.assertEqual(0,len(errList))
def test_chkDup_withDuplicates(self): """ Check to see if duplicate names returns errors """ dupNames = ['test','test','test1','test2'] errList=['','','',''] resultDup = createGameView._chkDup(dupNames,errList) self.assertDoesNotContain("Duplicate user",errList)