From 95e99cc984f638c4834b8be72874e8958b8ad6d3 Mon Sep 17 00:00:00 2001 From: "Michael R. Shannon" Date: Fri, 29 Mar 2019 17:35:10 -0600 Subject: [PATCH] Add unit tests for not implemented equality. --- cf_units/tests/test_unit.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cf_units/tests/test_unit.py b/cf_units/tests/test_unit.py index a96f14c3..ed5102e7 100644 --- a/cf_units/tests/test_unit.py +++ b/cf_units/tests/test_unit.py @@ -667,6 +667,10 @@ def test_unknown_no_unit(self): v = Unit('no_unit') self.assertNotEqual(u, v) + def test_not_implemented(self): + u = Unit('meter') + self.assertFalse(u == {}) + class Test_non_equality(unittest.TestCase): @@ -695,6 +699,10 @@ def test_no_unit(self): u = Unit('no_unit') self.assertFalse(u != 'no_unit') + def test_not_implemented(self): + u = Unit('meter') + self.assertNotEqual(u, {}) + class Test_convert(unittest.TestCase):