Skip to content

Commit 4682407

Browse files
committed
Using assertEqual instead of assertTrue/assertFalse.
1 parent a40ba03 commit 4682407

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/packages/Python/lldbsuite/test/tools/lldb-dap/lldbdap_testcase.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,12 +131,12 @@ def waitUntil(self, condition_callback):
131131
def assertCapabilityIsSet(self, key: str, msg: Optional[str] = None) -> None:
132132
"""Assert that given capability is set in the client."""
133133
self.assertIn(key, self.dap_server.capabilities, msg)
134-
self.assertTrue(self.dap_server.capabilities[key], msg)
134+
self.assertEqual(self.dap_server.capabilities[key], True, msg)
135135

136136
def assertCapabilityIsNotSet(self, key: str, msg: Optional[str] = None) -> None:
137137
"""Assert that given capability is not set in the client."""
138138
if key in self.dap_server.capabilities:
139-
self.assertFalse(self.dap_server.capabilities[key], msg)
139+
self.assertEqual(self.dap_server.capabilities[key], False, msg)
140140

141141
def verify_breakpoint_hit(self, breakpoint_ids, timeout=DEFAULT_TIMEOUT):
142142
"""Wait for the process we are debugging to stop, and verify we hit

0 commit comments

Comments
 (0)