

def test_convert_to_kilobits_bits_value(self):
    value = '1000bit'
    expected_value = tc_lib.bits_to_kilobits(1000, self.base_unit)
    self.assertEqual(expected_value, tc_lib.convert_to_kilobits(value, self.base_unit))

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/agent/linux/test_tc_lib.py BaseUnitConversionTest.test_convert_to_kilobits_bits_value/original