File tree Expand file tree Collapse file tree 1 file changed +0
-20
lines changed
Expand file tree Collapse file tree 1 file changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -986,23 +986,3 @@ def test_handle_process(self, mock_process):
986986 self .assertIsNotNone (ana .LASTINJECT_TIME )
987987 mock_process .assert_called_once ()
988988 self .assertEqual (1 , ana .NUM_INJECTED )
989-
990- @patch ("analyzer.Process" )
991- def test_handle_process_invalid_data (self , mock_process ):
992- ana = self .analyzer
993- with self .assertRaises (ValueError ):
994- data = bytes ("does not have a colon" .encode ())
995- self .pipe_handler ._handle_process (data = data )
996- with self .assertRaises (ValueError ):
997- data = bytes ("has:too:many:colons" .encode ())
998- self .pipe_handler ._handle_process (data = data )
999-
1000- data = bytes ("no_comma:non_digits" .encode ())
1001- self .pipe_handler ._handle_process (data = data )
1002- self .assertIsNone (ana .LASTINJECT_TIME )
1003- mock_process .assert_not_called ()
1004-
1005- data = bytes ("with_comma:non_digits,non_digits" .encode ())
1006- self .pipe_handler ._handle_process (data = data )
1007- self .assertIsNone (ana .LASTINJECT_TIME )
1008- mock_process .assert_not_called ()
You can’t perform that action at this time.
0 commit comments