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'])
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' ])
def test_use(self): dcw = DevpiCommandWrapper('http://localhost/', '/example') self.assertEqual(dcw.use('hans/prod'), [ 'devpi', 'use', 'http://localhost/hans/prod', '--clientdir=/example' ])
def test_use(self): dcw = DevpiCommandWrapper('http://localhost/', '/example') self.assertEqual( dcw.use('hans/prod'), ['devpi', 'use', 'http://localhost/hans/prod', '--clientdir=/example'])