Closed scottrice closed 10 years ago
Things to test:
[BackedObject]
find
all
backed_value
[ConfigFileBackingStore]
identifiers
add_identifier
remove_identifier
keys
get
set
save
Fixed by 24b1f2876b1a00be08c0ef5fdc16fe6038430f19
Things to test:
[BackedObject]
find
returns None with an invalid identifierfind
returns the same object when called twice with the same identifierall
returns an empty list when there are no identifiersbacked_value
returns the correct value[ConfigFileBackingStore]
identifiers
returns the correct valueadd_identifier
shows up in subsequent calls toidentifiers
remove_identifier
doesn't appear in a subsequent call toidentifiers
add_identifier
raises ValueError when an identifier already existsremove_identifier
raises ValueError when that identifier doesn't existkeys
raises ValueError when the identifier doesn't existget
returns the default when the key doesn't existget
returns the default when the value is empty stringget
is case insensitive with keysset
is case insensitive with keysset
is different in subsequent calls toget
save
raises IOError when writing to the location is not allowedsave
raises IOError when the location doesn't exist