Exemplo n.º 1
0
 def test_correct_signing_command(self):
     # getSigningCommand returns the correct command.
     self.setUpKeyAndCert()
     upload = UefiUpload()
     upload.setTargetDirectory(
         self.pubconf, "test_1.0_amd64.tar.gz", "distroseries")
     expected_command = [
         "sbsign", "--key", self.key, "--cert", self.cert, "t.efi"]
     self.assertEqual(expected_command, upload.getSigningCommand("t.efi"))