Package schrodinger :: Package test :: Module project_mock :: Class MockProjectTable
[hide private]
[frames] | no frames]

Class MockProjectTable

object --+
         |
        MockProjectTable

Stands in for the schrodinger.project.Project class for the tests.

Instance Methods [hide private]
 
__init__(self, st_fname)
x.__init__(...) initializes x; see help(type(x)) for signature
FakeProjectRow or None
getRow(self, eid)
Return the row at the specified eid index or None if not found.

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(self, st_fname)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Parameters:
  • st_fname (str) - Name of structure file to load project row structures from.
Overrides: object.__init__

getRow(self, eid)

 

Return the row at the specified eid index or None if not found.

Parameters:
  • eid (int) - 'Entry ID' index for the row to return
Returns: FakeProjectRow or None
The row of the specified enry if found or None if not