'If no recipients are given in the argument list and there is no
recipient header in the message text, L{parseOptions} raises
L{SystemExit} with a string describing the problem.'

def test_unspecifiedRecipients(self):

    self.addCleanup(setattr, sys, 'stdin', sys.stdin)
    sys.stdin = StringIO('Subject:    foo\n\nHello,    goodbye.\n')
    exc = self.assertRaises(SystemExit, parseOptions, [])
    self.assertEqual(exc.args, ('No    recipients    specified.',))
