コード例 #1
0
 def test_scan_verbose_print(mock_ow, mock_op, mock_p):
     mock_ow.return_value = []
     mock_op.return_value = True
     scanner = Scanner(parse_args(['-v', 'somedir/']))
     scanner.scan()
     mock_p.assert_called_once_with('somedir/')
コード例 #2
0
 def setUp(self):
     cli_args = parse_args([])
     self.scanner = Scanner(cli_args)