def testCount():
 deleteMatches()
 deletePlayers()
 c = countPlayers()
 if (c == '0'):
  raise TypeError("countPlayers should return numeric zero, not string '0'.")
 if (c != 0):
  raise ValueError('After deletion, countPlayers should return zero.')
 print '1. countPlayers() returns 0 after initial deletePlayers() execution.'
 registerPlayer('Chandra Nalaar')
 c = countPlayers()
 if (c != 1):
  raise ValueError('After one player registers, countPlayers() should be 1. Got {c}'.format(c=c))
 print '2. countPlayers() returns 1 after one player is registered.'
 registerPlayer('Jace Beleren')
 c = countPlayers()
 if (c != 2):
  raise ValueError('After two players register, countPlayers() should be 2. Got {c}'.format(c=c))
 print '3. countPlayers() returns 2 after two players are registered.'
 deletePlayers()
 c = countPlayers()
 if (c != 0):
  raise ValueError('After deletion, countPlayers should return zero.')
 print '4. countPlayers() returns zero after registered players are deleted.\n5. Player records successfully deleted.'

def testCount ( ) : deleteMatches ( ) deletePlayers ( ) c = countPlayers ( ) if ( c == '0' ) : raise TypeError ( "countPlayers should return numeric zero, not string '0'." ) if ( c != 0 ) : raise ValueError ( 'After deletion, countPlayers should return zero.' ) print '1. countPlayers() returns 0 after initial deletePlayers() execution.' registerPlayer ( 'Chandra Nalaar' ) c = countPlayers ( ) if ( c != 1 ) : raise ValueError ( 'After one player registers, countPlayers() should be 1. Got {c}' . format ( c = c ) ) print '2. countPlayers() returns 1 after one player is registered.' registerPlayer ( 'Jace Beleren' ) c = countPlayers ( ) if ( c != 2 ) : raise ValueError ( 'After two players register, countPlayers() should be 2. Got {c}' . format ( c = c ) ) print '3. countPlayers() returns 2 after two players are registered.' deletePlayers ( ) c = countPlayers ( ) if ( c != 0 ) : raise ValueError ( 'After deletion, countPlayers should return zero.' ) print '4. countPlayers() returns zero after registered players are deleted.\n5. Player records successfully deleted.'
test for initial player count .