예제 #1
0
 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)
예제 #2
0
 def test_chkBlank_withEmptyArray(self):
      """ Check to see if empty array returns true """
      empty = []
      resultNonBlank = createGameView._chkBlank(empty)
      self.assertFalse(resultNonBlank)
예제 #3
0
 def test_chkBlank_withBlankArray(self):
      """ Check to see if blank names return True """
      blankNames = ['','','','']
      resultBlank = createGameView._chkBlank(blankNames)
      self.assertTrue(resultBlank)