|
@@ -286,6 +286,8 @@ Attributes: |
|
|
self.assertEqual(ret, 0) |
|
|
self.assertEqual(ret, 0) |
|
|
self.assertEqual(stdout, output) |
|
|
self.assertEqual(stdout, output) |
|
|
|
|
|
|
|
|
|
|
|
gspk.assert_called_with(None) |
|
|
|
|
|
|
|
|
ac.assert_called_with(base_url='http://someserver/') |
|
|
ac.assert_called_with(base_url='http://someserver/') |
|
|
|
|
|
|
|
|
#args = { 'sshpubkey': keydata } |
|
|
#args = { 'sshpubkey': keydata } |
|
@@ -327,6 +329,8 @@ Attributes: |
|
|
json=dict(sshpubkey=keydata), |
|
|
json=dict(sshpubkey=keydata), |
|
|
auth=BiteAuth('thisisanapikey'), **_httpxargs) |
|
|
auth=BiteAuth('thisisanapikey'), **_httpxargs) |
|
|
|
|
|
|
|
|
|
|
|
gspk.assert_called_with('bogusfilename') |
|
|
|
|
|
|
|
|
@patch('bitelab.__main__.get_sshpubkey') |
|
|
@patch('bitelab.__main__.get_sshpubkey') |
|
|
@patch.dict(sys.__dict__, dict(argv=[ '', 'release', 'cora-z7s' ])) |
|
|
@patch.dict(sys.__dict__, dict(argv=[ '', 'release', 'cora-z7s' ])) |
|
|
def test_release(self, gspk): |
|
|
def test_release(self, gspk): |
|
|