Beispiel #1
0
 def test_find_equal_none(self):
     """Verify an empty generator when no items can be found."""
     base = Number(41)
     gen = tools.find_equal(base, self.items)
     self.assertListEqual([], list(gen))
Beispiel #2
0
 def test_find_equal_none(self):
     """Verify an empty generator when no items can be found."""
     base = Number(41)
     gen = tools.find_equal(base, self.items)
     self.assertListEqual([], list(gen))
Beispiel #3
0
 def test_find_equal(self):
     """Verify equal items can be found."""
     base = Number(42)
     gen = tools.find_equal(base, self.items)
     self.assertListEqual([Number(42)], list(gen))
Beispiel #4
0
 def test_find_equal(self):
     """Verify equal items can be found."""
     base = Number(42)
     gen = tools.find_equal(base, self.items)
     self.assertListEqual([Number(42)], list(gen))