#!/usr/local/bin/python2.7
import morse

try:
  assert '...---... ...---...' == morse.alpha_to_morse('sos sos')
  print 'alpha_to_morse() OK'
except:
  print 'alpha_to_morse() FAIL'

#!/usr/local/bin/python2.7
import morse

try:
  assert '...---... ...---...' == morse.alpha_to_morse('sos sos')
  print 'alpha_to_morse() OK'
except:
  print 'alpha_to_morse() FAIL'

try:
  assert 'SOS SOS' == morse.morse_to_alpha('...---... ...---...')
  print 'morse_to_alpha() OK'
except:
  print 'morse_to_alpha() FAIL'

add morse_to_alpha() test