Esempio n. 1
0
 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"))
Esempio n. 2
0
 def test_percentage_unit(self):
     """ Test that the percentage has no space before it. """
     self.assertEqual("%", utils.format_unit("%"))
Esempio n. 3
0
 def test_unit(self):
     """ Test that a regular unit gets a space prefixed. """
     self.assertEqual(" LOC", utils.format_unit("LOC"))