コード例 #1
0
 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")
コード例 #2
0
 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
コード例 #3
0
ファイル: test_utils.py プロジェクト: sti-lyneos/shop
 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")
コード例 #4
0
 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