diff options
Diffstat (limited to 'test/test_endian.py')
-rw-r--r-- | test/test_endian.py | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/test/test_endian.py b/test/test_endian.py index 462ee2b6b57..bb54a03fd13 100644 --- a/test/test_endian.py +++ b/test/test_endian.py @@ -24,15 +24,20 @@ class TestEndian(framework.VppTestCase): def test_f64_endian_value(self): try: rv = self.vapi.get_f64_endian_value(f64_one=F64_ONE) - self.assertEqual(rv.f64_one_result, F64_ONE, - "client incorrectly deserializes f64 values. " - "Expected: %r. Received: %r." % ( - F64_ONE, rv.f64_one_result)) + self.assertEqual( + rv.f64_one_result, + F64_ONE, + "client incorrectly deserializes f64 values. " + "Expected: %r. Received: %r." % (F64_ONE, rv.f64_one_result), + ) except vpp_papi_provider.UnexpectedApiReturnValueError: - self.fail('client incorrectly serializes f64 values.') + self.fail("client incorrectly serializes f64 values.") def test_get_f64_increment_by_one(self): expected = 43.0 rv = self.vapi.get_f64_increment_by_one(f64_value=42.0) - self.assertEqual(rv.f64_value, expected, 'Expected %r, received:%r.' - % (expected, rv.f64_value)) + self.assertEqual( + rv.f64_value, + expected, + "Expected %r, received:%r." % (expected, rv.f64_value), + ) |