예제 #1
0
 def test_args_url_and_text(self):
     self.assertRaises(DocoptExit,
                       docopt,
                       to_string(main_doc),
                       'lsa --url=URL --text=TEXT'.split(),
                       version=__version__)
예제 #2
0
 def test_args_two_commands(self):
     self.assertRaises(DocoptExit,
                       docopt,
                       to_string(main_doc),
                       'lsa luhn'.split(),
                       version=__version__)
예제 #3
0
 def test_args_url_and_file(self):
     self.assertRaises(DocoptExit,
                       docopt,
                       to_string(main_doc),
                       'lsa --url=URL --file=FILE'.split(),
                       version=__version__)
예제 #4
0
def test_args_just_command():
    args = docopt(to_string(main_doc), ['lsa'], version=__version__)

    assert DEFAULT_ARGS == args
예제 #5
0
 def test_args_just_command(self):
     args = docopt(to_string(main_doc), ['lsa'], version=__version__)
     self.assertEqual(self.DEFAULT_ARGS, args)
예제 #6
0
파일: test_main.py 프로젝트: Anhmike/sumy
 def test_args_none(self):
     self.assertRaises(DocoptExit, docopt, to_string(main_doc), None, version=__version__)
예제 #7
0
파일: test_main.py 프로젝트: Anhmike/sumy
 def test_args_two_commands(self):
     self.assertRaises(DocoptExit, docopt, to_string(main_doc), 'lsa luhn'.split(), version=__version__)
예제 #8
0
def test_args_two_commands():
    with pytest.raises(DocoptExit):
        docopt(to_string(main_doc), 'lsa luhn'.split(), version=__version__)
예제 #9
0
def test_args_url_and_file():
    with pytest.raises(DocoptExit):
        docopt(to_string(main_doc),
               'lsa --url=URL --file=FILE'.split(),
               version=__version__)
예제 #10
0
def test_args_none():
    with pytest.raises(DocoptExit):
        docopt(to_string(main_doc), None, version=__version__)
예제 #11
0
def test_args_just_command():
    args = docopt(to_string(main_doc), ['lsa'], version=__version__)

    assert DEFAULT_ARGS == args
예제 #12
0
def test_args_url_and_text():
    with pytest.raises(DocoptExit):
        docopt(to_string(main_doc), 'lsa --url=URL --text=TEXT'.split(), version=__version__)
예제 #13
0
def test_args_url_and_file():
    with pytest.raises(DocoptExit):
        docopt(to_string(main_doc), 'lsa --url=URL --file=FILE'.split(), version=__version__)
예제 #14
0
def test_args_two_commands():
    with pytest.raises(DocoptExit):
        docopt(to_string(main_doc), 'lsa luhn'.split(), version=__version__)
예제 #15
0
 def test_args_url_and_text(self):
     self.assertRaises(DocoptExit, docopt, to_string(main_doc), 'lsa --url=URL --text=TEXT'.split(), version=__version__)
예제 #16
0
def test_args_url_and_text():
    with pytest.raises(DocoptExit):
        docopt(to_string(main_doc),
               'lsa --url=URL --text=TEXT'.split(),
               version=__version__)
예제 #17
0
파일: test_main.py 프로젝트: Anhmike/sumy
 def test_ok_args(self):
     docopt(to_string(main_doc), 'luhn --url=URL --format=FORMAT'.split(), version=__version__)
예제 #18
0
 def test_ok_args(self):
     docopt(to_string(main_doc),
            'luhn --url=URL --format=FORMAT'.split(),
            version=__version__)
예제 #19
0
파일: test_main.py 프로젝트: Anhmike/sumy
 def test_args_just_command(self):
     args = docopt(to_string(main_doc), ['lsa'], version=__version__)
     self.assertEqual(self.DEFAULT_ARGS, args)
예제 #20
0
 def test_args_none(self):
     self.assertRaises(DocoptExit,
                       docopt,
                       to_string(main_doc),
                       None,
                       version=__version__)
예제 #21
0
파일: test_main.py 프로젝트: Anhmike/sumy
 def test_args_url_and_file(self):
     self.assertRaises(DocoptExit, docopt, to_string(main_doc), 'lsa --url=URL --file=FILE'.split(), version=__version__)
예제 #22
0
def test_args_none():
    with pytest.raises(DocoptExit):
        docopt(to_string(main_doc), None, version=__version__)