Beispiel #1
0
 def test_use_client_cert(self):
     dcw = DevpiCommandWrapper('http://localhost/', '/example',
                               client_cert='/path/to/cert')
     self.assertEqual(
         dcw.use('hans/prod'),
         ['devpi', 'use', 'http://localhost/hans/prod',
          '--client-cert=/path/to/cert', '--clientdir=/example'])
Beispiel #2
0
 def test_use_client_cert(self):
     dcw = DevpiCommandWrapper('http://localhost/',
                               '/example',
                               client_cert='/path/to/cert')
     self.assertEqual(dcw.use('hans/prod'), [
         'devpi', 'use', 'http://localhost/hans/prod',
         '--client-cert=/path/to/cert', '--clientdir=/example'
     ])
Beispiel #3
0
 def test_use(self):
     dcw = DevpiCommandWrapper('http://localhost/', '/example')
     self.assertEqual(dcw.use('hans/prod'), [
         'devpi', 'use', 'http://localhost/hans/prod',
         '--clientdir=/example'
     ])
Beispiel #4
0
 def test_use(self):
     dcw = DevpiCommandWrapper('http://localhost/', '/example')
     self.assertEqual(
         dcw.use('hans/prod'),
         ['devpi', 'use', 'http://localhost/hans/prod',
          '--clientdir=/example'])