Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ianj-als/pypeline.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/pypeline/core/types/tests/just_tests.py')
-rw-r--r--src/pypeline/core/types/tests/just_tests.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/pypeline/core/types/tests/just_tests.py b/src/pypeline/core/types/tests/just_tests.py
index 8d0cf89..0c73b82 100644
--- a/src/pypeline/core/types/tests/just_tests.py
+++ b/src/pypeline/core/types/tests/just_tests.py
@@ -40,6 +40,10 @@ class JustMonadUnitTest(unittest.TestCase):
def test_eq(self):
- self.assertTrue(Just(10) == return_(10))
- self.assertFalse(Just(10) == None)
- self.assertFalse(Just(10) == object())
+ self.assertEquals(Just(10), return_(10))
+
+
+ def test_ne(self):
+ self.assertNotEquals(Just(11), return_(10))
+ self.assertNotEquals(Just(11), None)
+ self.assertNotEquals(Just(11), object())