def test_oem_channel_extractor(self): s = get_oem_channel_descriptor("./data/ubuntu_dist_channel") self.assertEqual(s, "canonical-oem-watauga-precise-amd64-20120517-2")
def _get_user_agent_string(self): settings = self.get_settings() user_agent_string = settings.get_property("user-agent") user_agent_string += " %s " % WEBKIT_USER_AGENT_SUFFIX user_agent_string += get_oem_channel_descriptor() return user_agent_string
def test_oem_channel_extractor(self): s = get_oem_channel_descriptor("./tests/data/ubuntu_dist_channel") self.assertEqual(s, "canonical-oem-watauga-precise-amd64-20120517-2")