iblutil.tests.test_util

Classes

TestBunch

TestDirSize

TestEnsureList

Test ensure_list function.

TestFlatten

TestGetMac

TestListable

Test Listable typing class.

TestLogger

TestRangeStr

TestRrmdir

class TestBunch(methodName='runTest')[source]

Bases: TestCase

test_copy()[source]

Test Bunch.copy method.

test_sync()[source]

This test is just to document current use in libraries in case of refactoring

test_bunch_io()[source]
class TestFlatten(methodName='runTest')[source]

Bases: TestCase

test_flatten()[source]
class TestRangeStr(methodName='runTest')[source]

Bases: TestCase

test_range_str()[source]
class TestLogger(methodName='runTest')[source]

Bases: TestCase

log_name = '_foobar'
test_no_duplicates()[source]
test_file_handler_setup()[source]
test_file_handler_stand_alone()[source]

Test for ibllib.misc.log_to_file

test_file_handler_log_input()[source]

Test ibllib.misc.log_to_file accepts log object as input

tearDown() None[source]

Hook method for deconstructing the test fixture after testing it.

class TestRrmdir(methodName='runTest')[source]

Bases: TestCase

test_rrmdir()[source]
class TestDirSize(methodName='runTest')[source]

Bases: TestCase

test_dir_size()[source]
class TestGetMac(methodName='runTest')[source]

Bases: TestCase

test_get_mac()[source]
class TestEnsureList(methodName='runTest')[source]

Bases: TestCase

Test ensure_list function.

test_ensure_list()[source]

Test ensure_list function.

class TestListable(methodName='runTest')[source]

Bases: TestCase

Test Listable typing class.

test_listable()[source]

Test listable type from given class.