Skip to content

Commit

Permalink
Add unit tests for not implemented equality.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrshannon committed Mar 29, 2019
1 parent 63bbb1a commit 95e99cc
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions cf_units/tests/test_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):

Expand Down Expand Up @@ -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):

Expand Down

0 comments on commit 95e99cc

Please sign in to comment.