Index: third_party/twisted_8_1/twisted/mail/test/test_options.py |
diff --git a/third_party/twisted_8_1/twisted/mail/test/test_options.py b/third_party/twisted_8_1/twisted/mail/test/test_options.py |
deleted file mode 100644 |
index 65c360b4752273384f68204c4ee3cc33c0d52bf9..0000000000000000000000000000000000000000 |
--- a/third_party/twisted_8_1/twisted/mail/test/test_options.py |
+++ /dev/null |
@@ -1,38 +0,0 @@ |
- |
-from twisted.trial.unittest import TestCase |
- |
-from twisted.python.usage import UsageError |
-from twisted.mail.tap import Options |
- |
- |
-class OptionsTestCase(TestCase): |
- """ |
- Tests for the command line option parser used for C{mktap mail}. |
- """ |
- def setUp(self): |
- self.aliasFilename = self.mktemp() |
- aliasFile = file(self.aliasFilename, 'w') |
- aliasFile.write('someuser:\tdifferentuser\n') |
- aliasFile.close() |
- |
- |
- def testAliasesWithoutDomain(self): |
- """ |
- Test that adding an aliases(5) file before adding a domain raises a |
- UsageError. |
- """ |
- self.assertRaises( |
- UsageError, |
- Options().parseOptions, |
- ['--aliases', self.aliasFilename]) |
- |
- |
- def testAliases(self): |
- """ |
- Test that adding an aliases(5) file to an IAliasableDomain at least |
- doesn't raise an unhandled exception. |
- """ |
- Options().parseOptions([ |
- '--maildirdbmdomain', 'example.com=example.com', |
- '--aliases', self.aliasFilename]) |
- |