コード例 #1
0
 def test_bad_cols(self, stderr_mock):
     # passing test means nothing raised
     args = MagicMock(quiet=False)
     cols = ['b']
     df = MagicMock(columns=['a'])
     with self.assertRaises(SystemExit):
         validate_args(args, cols, df)
コード例 #2
0
 def test_bad_cols(self, stderr_mock):
     # passing test means nothing raised
     args = MagicMock(quiet=False)
     cols = ['b']
     df = MagicMock(columns=['a'])
     with self.assertRaises(SystemExit):
         validate_args(args, cols, df)
コード例 #3
0
 def test_okay(self):
     # passing test means nothing raised
     args = MagicMock(quiet=False)
     cols = ['a']
     df = MagicMock(columns=['a'])
     validate_args(args, cols, df)
コード例 #4
0
 def test_okay(self):
     # passing test means nothing raised
     args = MagicMock(quiet=False)
     cols = ['a']
     df = MagicMock(columns=['a'])
     validate_args(args, cols, df)