def testPrependGmx(self): params = {"pme": "gpu", "maxh": 3.5} self.assertEqual(_serializeParams(params, prepend="gmx_mpi"), "gmx_mpi -maxh 3.5 -pme gpu")
def testEmpty(self): self.assertEqual(_serializeParams(dict()), "")
def testKeyValStringFloat(self): params = {"pme": "gpu", "maxh": 3.5} self.assertEqual(_serializeParams(params), "-maxh 3.5 -pme gpu")
def testKeyValStringInt(self): params = {"pme": "gpu", "nstlist": 80} self.assertEqual(_serializeParams(params), "-nstlist 80 -pme gpu")
def testKeyValStringNone(self): params = {"pme": "gpu", "notunepme": None} self.assertEqual(_serializeParams(params), "-notunepme -pme gpu")
def testKeyValStringBoolFalse(self): params = {"pme": "gpu", "notunepme": False} self.assertEqual(_serializeParams(params), "-pme gpu")
def testKeyValAllString(self): params = {"pme": "gpu", "bonded": "cpu"} self.assertEqual(_serializeParams(params), "-bonded cpu -pme gpu")