<s> import unittest <EOL> from postie import Postie <EOL> from postie import create_parser <EOL> import os <EOL> class TestPostie ( unittest . TestCase ) : <EOL> def setUp ( self ) : <EOL> self . parser = create_parser ( ) <EOL> def test_no_args ( self ) : <EOL> with self . assertRaises ( SystemExit ) : <EOL> self . parser . parse_args ( [ ] ) <EOL> def test_no_csv_arg ( self ) : <EOL> with self . assertRaises ( SystemExit ) : <EOL> arg = self . parser . parse_args ( [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> self . assertIsNone ( arg . csv ) <EOL> def test_no_template_arg ( self ) : <EOL> with self . assertRaises ( SystemExit ) : <EOL> arg = self . parser . parse_args ( [ '<STR_LIT>' , '<STR_LIT>' ] ) <EOL> self . assertIsNone ( arg . template ) <EOL> if __name__ == '<STR_LIT:__main__>' : <EOL> unittest . main ( ) </s>
