Пример #1
0
 def test_format_unit_header_2(self):
     res = common.format_unit_header("Power", hfarray([0.1], unit=None))
     self.assertEqual(res, "Power")
Пример #2
0
 def test_format_unit_header_2(self):
     res = common.format_unit_header("Power", hfarray([0.1], unit=None))
     self.assertEqual(res, "Power")
Пример #3
0
 def test_format_unit_header_1(self):
     res = common.format_unit_header("Power", hfarray([0.1], unit="W"))
     self.assertEqual(res, "Power [W]")
Пример #4
0
 def test_format_unit_header_1(self):
     res = common.format_unit_header("Power", hfarray([0.1], unit="W"))
     self.assertEqual(res, "Power [W]")