def METHOD_NAME(self, values, kwargs):
    if self.dump:
        results = []
        for value, _, _ in values:
            actual_fraction = round_to_fraction(value, **kwargs)
            results.append([value, float(actual_fraction), actual_fraction])
        import pprint
        pprint.pprint(results)
    for value, expected_float, expected_fraction in values:
        actual_fraction = round_to_fraction(value, **kwargs)
        self.assertEqual(expected_fraction, actual_fraction)
        self.assertAlmostEqual(expected_float, float(actual_fraction))