Skip to content

Commit c462d0b

Browse files
committed
Remove test_handle_process_invalid_data() from tests/test_analyzer.py
1 parent e644ed4 commit c462d0b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

analyzer/windows/tests/test_analyzer.py

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff 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()

0 commit comments

Comments
 (0)