Esempio n. 1
0
 def test_dd_extract(self, check_output):
     """dd_extract: call binary with expected arguments"""
     rpm = "/some/kind/of/path.rpm"
     outdir = "/output/dir"
     dd_extract(rpm, outdir)
     cmd = check_output.call_args[0][0]
     self.assertIn(os.uname()[2], cmd)
     self.assertIn(rpm, cmd)
     self.assertIn(outdir, cmd)
     self.assertIn("-blmf", cmd)
     self.assertTrue(cmd[0].endswith("dd_extract"))
Esempio n. 2
0
 def test_dd_extract(self, check_output):
     """dd_extract: call binary with expected arguments"""
     rpm = "/some/kind/of/path.rpm"
     outdir = "/output/dir"
     dd_extract(rpm, outdir)
     cmd = check_output.call_args[0][0]
     self.assertIn(os.uname()[2], cmd)
     self.assertIn(rpm, cmd)
     self.assertIn(outdir, cmd)
     self.assertIn("-blmf", cmd)
     self.assertTrue(cmd[0].endswith("dd_extract"))
Esempio n. 3
0
 def test_dd_extract(self, check_output):
     """dd_extract: call binary with expected arguments"""
     rpm = "/some/kind/of/path.rpm"
     outdir = "/output/dir"
     dd_extract(rpm, outdir)
     cmd = check_output.call_args[0][0]
     assert os.uname()[2] in cmd
     assert rpm in cmd
     assert outdir in cmd
     assert "-blmf" in cmd
     assert cmd[0].endswith("dd_extract")