def test_chkBlank_withNonBlankArray(self): """ Check to see if non-blank names return False """ nonBlankNames = ['test','test','test','test'] resultNonBlank = createGameView._chkBlank(nonBlankNames) self.assertFalse(resultNonBlank)
def test_chkBlank_withEmptyArray(self): """ Check to see if empty array returns true """ empty = [] resultNonBlank = createGameView._chkBlank(empty) self.assertFalse(resultNonBlank)
def test_chkBlank_withBlankArray(self): """ Check to see if blank names return True """ blankNames = ['','','',''] resultBlank = createGameView._chkBlank(blankNames) self.assertTrue(resultBlank)