Commit f37d4455 by Matt McDonald Committed by Copybara-Service

Internal change.

PiperOrigin-RevId: 579841851
parent 2ed475dc
...@@ -42,12 +42,12 @@ class StatusTest(parameterized.TestCase): ...@@ -42,12 +42,12 @@ class StatusTest(parameterized.TestCase):
def test_status_nok_ok_str(self): def test_status_nok_ok_str(self):
with self.assertRaises(AttributeError) as cm: with self.assertRaises(AttributeError) as cm:
status.StatusNotOk('') status.StatusNotOk('') # pytype: disable=wrong-arg-types
self.assertEqual(str(cm.exception), "'str' object has no attribute 'ok'") self.assertEqual(str(cm.exception), "'str' object has no attribute 'ok'")
def test_status_nok_ok_none(self): def test_status_nok_ok_none(self):
with self.assertRaises(AssertionError) as cm: with self.assertRaises(AssertionError) as cm:
status.StatusNotOk(None) status.StatusNotOk(None) # pytype: disable=wrong-arg-types
self.assertEqual(str(cm.exception), '') self.assertEqual(str(cm.exception), '')
def test_canonical_error(self): def test_canonical_error(self):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment