File_BDP — Test data product representing a disk file.

This module defines the File_BDP class.

class admit.bdp.File_BDP.File_BDP(xmlFile=None)[source]

This is the file BDP, just for testing.

But there really isn’t much to this, other than containing a file reference. See File_AT how to make one.

Parameters:

xmlFile : str

Output XML file name.

Methods

baseDir([path]) Get/set project base directory.
checkfiles() Determines whether the associated disk file exists.
delete([delfiles]) Method to delete the BDP.
get(key) Access an attribute.
getdir() Method to get the subdirectory(s) of the current BDP relative to the ADMIT working directory.
getfiles() returns a list of file names.
haskey(key) Query if a key exists for an BDP.
isequal(bdp) Tests for equality with another BDP.
report() Report BDP properties in human readable format.
setkey([name, key]) Sets keyword value(s).
show() testing Overriding the baseclass SHOW
touch() Touches the associated disk file.
update(new_state) Updates BDP state.
write([xmlFile]) Writes the BDP to an XML file.
checkfiles()[source]

Determines whether the associated disk file exists.

Raises an exception if the file is absent.

Parameters:None
Returns:None
getfiles()[source]

returns a list of file names.

For File_BDP only one filename is currently allowed

show()[source]

testing Overriding the baseclass SHOW

touch()[source]

Touches the associated disk file.

The implementation uses native Python OS bindings for speed.

Parameters:None
Returns:None