def testReceiveNull(self):
     '''The test function returns '-1' when receives a None value instead of a string.'''
     self.assertEqual(countCharacters(None), -1)
Ejemplo n.º 2
0
 def testReceiveNull(self):
     '''The test function returns '-1' when receives a None value instead of a string.'''
     self.assertEqual(countCharacters(None), -1)
 def testBasic(self):
     '''The test function should be working for the basic cases.'''
     a = ''
     b = 'abc'
     self.assertEqual(countCharacters(a), len(a))
     self.assertEqual(countCharacters(b), len(b))
Ejemplo n.º 4
0
 def testBasic(self):
     '''The test function should be working for the basic cases.'''
     a = ''
     b = 'abc'
     self.assertEqual(countCharacters(a), len(a))
     self.assertEqual(countCharacters(b), len(b))