def do_convert_test(self, range_argses): orange = meta_range_t() for range_args in range_argses: orange.push_back(range_t(*range_args)) myrange = convert_osmosdr_range(orange) self.assertEqual( [(min_val, max_val) for (min_val, max_val, _) in range_argses], myrange.type_to_json()['subranges'])
def do_convert_test(self, range_argses): orange = meta_range_t() for range_args in range_argses: orange.push_back(range_t(*range_args)) myrange = convert_osmosdr_range(orange) self.assertEqual([(min_val, max_val) for (min_val, max_val, _) in range_argses], myrange.to_json()['subranges'])