Beispiel #1
0
 def test_run_script_err(self):
     self.assertEqual(utils.run_script(''), '')
Beispiel #2
0
 def test_run_script_err(self):
     self.assertEqual(utils.run_script(''), '')
Beispiel #3
0
 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))
Beispiel #4
0
 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))