Browse Source

Py3: Add additional misc-tests

pull/1253/head
Safihre 6 years ago
parent
commit
743e660395
  1. 5
      tests/test_misc.py

5
tests/test_misc.py

@ -110,6 +110,11 @@ class TestMisc:
assert '9.8 G' == misc.to_units(1024*1024*10000)
assert '1024.0 P' == misc.to_units(1024**6)
def test_unit_back_and_forth(self):
assert 100 == misc.from_units(misc.to_units(100))
assert 1024 == misc.from_units(misc.to_units(1024))
assert 1024**3 == misc.from_units(misc.to_units(1024**3))
def test_caller_name(self):
@set_config({'log_level': 0})
def test_wrapper(skip):

Loading…
Cancel
Save