def testUnknownField(self): self.assertEquals( client_api.getSystemCapabilities("ISET:SSE3,MEM:6721,PROC:Intel"), { "instructionSet": "SSE3", "memory": 6721 })
def testNothingProvided(self): self.assertEquals( client_api.getSystemCapabilities("NA"), {"instructionSet": "NA", "memory": None} )
def testPrefixedInstructionSetAndMemory(self): self.assertEquals( client_api.getSystemCapabilities("ISET:SSE2,MEM:6321"), {"instructionSet": "SSE2", "memory": 6321} )
def testUnprefixedInstructionSetAndMemory(self): self.assertEquals( client_api.getSystemCapabilities("SSE3,8095"), {"instructionSet": "SSE3", "memory": 8095} )
def testUnprefixedInstructionSetOnly(self): self.assertEquals( client_api.getSystemCapabilities("SSE3"), {"instructionSet": "SSE3", "memory": None} )