|
@@ -294,7 +294,7 @@ Attributes: |
|
|
auth=BiteAuth('thisisanapikey'), **_httpxargs) |
|
|
auth=BiteAuth('thisisanapikey'), **_httpxargs) |
|
|
|
|
|
|
|
|
@patch('bitelab.__main__.get_sshpubkey') |
|
|
@patch('bitelab.__main__.get_sshpubkey') |
|
|
@patch.dict(sys.__dict__, dict(argv=[ '', 'reserve', '-i', 'fixtures/testsshkey.pub', 'cora-z7s' ])) |
|
|
|
|
|
|
|
|
@patch.dict(sys.__dict__, dict(argv=[ '', 'reserve', '-i', 'bogusfilename', 'cora-z7s' ])) |
|
|
def test_reserve_ssh(self, gspk): |
|
|
def test_reserve_ssh(self, gspk): |
|
|
ac = self.ac |
|
|
ac = self.ac |
|
|
acp = self.acp |
|
|
acp = self.acp |
|
|