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