def test_keys(keys, lh, rh):
            beatmap = BeatmapIO.open_beatmap(f'unit_tests\\maps\\mania\\test\\{keys}k_10x_0.25_chords.osu')
            action_data = ManiaActionData.get_action_data(beatmap)

            left_hand, right_hand = ManiaActionData.split_by_hand(action_data, left_handed=True)
            self.assertEqual(ManiaActionData.num_keys(left_hand),  lh, 'Left hand has wrong number of keys')
            self.assertEqual(ManiaActionData.num_keys(right_hand), rh, 'Right hand has wrong number of keys')

            lh, rh = rh, lh
            left_hand, right_hand = ManiaActionData.split_by_hand(action_data, left_handed=False)
            self.assertEqual(ManiaActionData.num_keys(left_hand),  lh, 'Left hand has wrong number of keys')
            self.assertEqual(ManiaActionData.num_keys(right_hand), rh, 'Right hand has wrong number of keys')
 def test_keys(keys):
     beatmap = BeatmapIO.open_beatmap(f'unit_tests\\maps\\mania\\test\\{keys}k_10x_0.25_chords.osu')
     action_data = ManiaActionData.get_action_data(beatmap)
     self.assertEqual(ManiaActionData.num_keys(action_data), keys, 'Calculated wrong number of keys')