safe.storage.test.test_utilities module

Tests for safe common utilities

class safe.storage.test.test_utilities.CommonUtilitiesTest(methodName='runTest')[source]

Bases: unittest.case.TestCase

make_temp_file()[source]

Helper to make a keywords file path

setUp()[source]
test_read_all_keywords()[source]

Test reading all keywords for all layers

test_read_keywords()[source]

Test reading keywords - get first block from kwds as default.

test_read_keywords_for_sublayer()[source]

Test reading keywords for specific sublayer.

test_read_keywords_simple()[source]

Test reading keywords from keywords file with no sublayers

test_write_keywords()[source]

Test writing keywords with no sublayer, no existing file.

test_write_keywords_multisublayer()[source]

Test writing keywords for named sublayer, no existing file.

test_write_keywords_singlesublayer()[source]

Test writing keywords for single sublayer, no existing file.