Python copy 模块,original_encoding() 实例源码

我们从Python开源项目中,提取了以下25个代码示例,用于说明如何使用copy.original_encoding()

项目:Projects    作者:it2school    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:UPBGE-CommunityAddon    作者:elmeunick9    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:harbour-sailfinder    作者:DylanVanAssche    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:harbour-sailfinder    作者:DylanVanAssche    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:B.E.N.J.I.    作者:the-ethan-hunt    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:flickr_downloader    作者:Denisolt    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:catchup4kodi    作者:catchup4kodi    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:ShelbySearch    作者:Agentscreech    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:respeaker_virtualenv    作者:respeaker    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:GUIYoutube    作者:coltking    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:ServerlessCrawler-VancouverRealState    作者:MarcelloLins    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:ServerlessCrawler-VancouverRealState    作者:MarcelloLins    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:ServerlessCrawler-VancouverRealState    作者:MarcelloLins    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:mibici-tools    作者:regenhans    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:ip138-alfred    作者:nemoTyrant    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:mit-inspire-2018    作者:pjrule    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:UAGS    作者:HoraceAndTheSpider    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:EmojiTaco    作者:jeeftor    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:alfred-smzdm    作者:MikeAfc    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:UAEConfigMaker    作者:HoraceAndTheSpider    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:4channer    作者:fellchase    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:ngDownloaderAPI    作者:manishbisht    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:youdao-alfred    作者:nemoTyrant    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:ftcommunity-apps    作者:ftCommunity    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual("<p> </p>", str(copy))
        self.assertEqual(encoding, copy.original_encoding)
项目:alfred-powerthesaurus    作者:clarencecastillo    | 项目源码 | 文件源码
def test_copy_preserves_encoding(self):
        soup = BeautifulSoup(b'<p>&nbsp;</p>', 'html.parser')
        encoding = soup.original_encoding
        copy = soup.__copy__()
        self.assertEqual(u"<p> </p>", unicode(copy))
        self.assertEqual(encoding, copy.original_encoding)