Example #1
0
 def test_same_parity_algorithm(self):
     """assert that same_parity algorithm is correct"""
     _fcc = FCCHandler(10)
     _same_parity = _fcc._same_parity(1, 1, 1)
     self.assertTrue(_same_parity)
     _same_parity = _fcc._same_parity(1, 1, 2)
     self.assertFalse(_same_parity)
Example #2
0
 def test_is_even_algorith(self):
     """assert that is_even algorithm is correct"""
     _fcc = FCCHandler(10)
     _is_even = _fcc._is_even(0)
     self.assertTrue(_is_even)
     _is_even = _fcc._is_even(1)
     self.assertFalse(_is_even)