예제 #1
0
파일: test_client.py 프로젝트: cliqz/balrog
 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}
     )