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