

def test_convert_to_bytes_wrong_unit(self):
    value = '1Zbit'
    self.assertRaises(tc_lib.InvalidUnit, tc_lib.convert_to_kilobits, value, value.base_unit)

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/agent/linux/test_tc_lib.py BaseUnitConversionTest.test_convert_to_bytes_wrong_unit/VarMisuse@28/45 `self`->`value`