

def test_get_filters_bw_limits_when_wrong_units(self):
    output = TC_FILTERS_OUTPUT.replace('kbit', 'Xbit')
    self.execute.return_value = output
    self.assertRaises(tc_lib.InvalidUnit, self.tc.get_filters_bw_limits)

dataset/ETHPy150Open openstack/neutron/neutron/tests/unit/agent/linux/test_tc_lib.py TestTcCommand.test_get_filters_bw_limits_when_wrong_units/original