def test_run_script_err(self): self.assertEqual(utils.run_script(''), '')
def test_run_script_std(self): self.assertEqual( utils.run_script('date', '-u', '-d 2016-04-08T11:19:04+00:00', '+%Y-%m-%d'), (b'2016-04-08\n', None))
def test_run_script_std(self): self.assertEqual(utils.run_script('date', '-u', '-d 2016-04-08T11:19:04+00:00' , '+%Y-%m-%d'), (b'2016-04-08\n', None))