예제 #1
0
파일: test_show.py 프로젝트: rrosajp/pipgh
 def test_cli_usage(self):
     usage = 'pipgh [--auth] show [--<key>...] <full_name>'
     self.assertTrue(usage in pipgh.__doc__)
     try:
         pipgh.show(False, ['hello', 'arg'])
     except SystemExit as e:
         self.assertTrue(usage in e.args[0])
예제 #2
0
파일: test_show.py 프로젝트: ffunenga/pipgh
 def test_cli_usage(self):
     usage = 'pipgh [--auth] show [--<key>...] <full_name>'
     self.assertTrue(usage in pipgh.__doc__)
     try:
         pipgh.show(False, ['hello', 'arg'])
     except SystemExit as e:
         self.assertTrue(usage in e.args[0])
예제 #3
0
파일: test_show.py 프로젝트: rrosajp/pipgh
    def test_show_key(self):
        argv = ['show', '--clone-url', 'pypa/pip']
        val = pipgh.show(True, argv, output=False)
        self.assertTrue(val.endswith('github.com/pypa/pip.git'))

        argv = ['show', '--owner', '--login', 'pypa/pip']
        val = pipgh.show(True, argv, output=False)
        self.assertTrue(val == 'pypa')
예제 #4
0
파일: test_show.py 프로젝트: ffunenga/pipgh
    def test_show_key(self):
        argv = ['show', '--clone-url', 'pypa/pip']
        val = pipgh.show(True, argv, output=False)
        self.assertTrue(val.endswith('github.com/pypa/pip.git'))

        argv = ['show', '--owner', '--login', 'pypa/pip']
        val = pipgh.show(True, argv, output=False)
        self.assertTrue(val == 'pypa')
예제 #5
0
 def test_execution(self):
     argv = ['show', 'docopt/docopt']
     response, readme = pipgh.show(True, argv, output=False)
     self.assertGreaterEqual(response['full_name'], argv[1])
예제 #6
0
파일: test_show.py 프로젝트: rrosajp/pipgh
 def test_execution(self):
     argv = ['show', 'docopt/docopt']
     response, readme = pipgh.show(True, argv, output=False)
     self.assertGreaterEqual(response['full_name'], argv[1])