示例#1
0
 def testUnknownField(self):
     self.assertEquals(
         client_api.getSystemCapabilities("ISET:SSE3,MEM:6721,PROC:Intel"),
         {
             "instructionSet": "SSE3",
             "memory": 6721
         })
示例#2
0
 def testNothingProvided(self):
     self.assertEquals(
         client_api.getSystemCapabilities("NA"),
         {"instructionSet": "NA", "memory": None}
     )
示例#3
0
 def testPrefixedInstructionSetAndMemory(self):
     self.assertEquals(
         client_api.getSystemCapabilities("ISET:SSE2,MEM:6321"),
         {"instructionSet": "SSE2", "memory": 6321}
     )
示例#4
0
 def testUnprefixedInstructionSetAndMemory(self):
     self.assertEquals(
         client_api.getSystemCapabilities("SSE3,8095"),
         {"instructionSet": "SSE3", "memory": 8095}
     )
示例#5
0
 def testUnprefixedInstructionSetOnly(self):
     self.assertEquals(
         client_api.getSystemCapabilities("SSE3"),
         {"instructionSet": "SSE3", "memory": None}
     )