def agentTest(self, agentStrings, expectedOperatingSystem):
     for agentString in agentStrings:
         self.assertEquals(expectedOperatingSystem, OperatingSystem.parseUserAgentString(agentString))
 def deviceTypeTest(self, agentStrings, expectedDeviceType):
     for agentString in agentStrings:
         self.assertEquals(expectedDeviceType, OperatingSystem.parseUserAgentString(agentString).deviceType)