def test_is_parallel_repeating(self): """ Check the function doesn't mis-identify repeating notes (no motion). """ last = (2, 4) current = (2, 4) result = is_parallel(last, current) self.assertEqual(False, result)
def test_is_parallel_contrary(self): """ Check the function doesn't mis-identify contrary motion. """ last = (2, 4) current = (1, 5) result = is_parallel(last, current) self.assertEqual(False, result)
def test_is_parallel_falling(self): """ Detects falling parallel motion. """ last = (2, 4) current = (1, 3) result = is_parallel(last, current) self.assertEqual(True, result)