def test_unit_with_space(self): """ Test that a regular unit with a space doesn't get a space prefixed. """ self.assertEqual(" LOC", utils.format_unit(" LOC"))
def test_percentage_unit(self): """ Test that the percentage has no space before it. """ self.assertEqual("%", utils.format_unit("%"))
def test_unit(self): """ Test that a regular unit gets a space prefixed. """ self.assertEqual(" LOC", utils.format_unit("LOC"))