def METHOD_NAME(self):
    self.fake_check_output.mock.side_effect = [json.dumps([]).encode()]
    raised = self.assertRaises(
        storeapi.errors.NoKeysError, self.run_command, ["register-key"]
    )
    self.assertThat(str(raised), Contains("You have no usable keys"))