Beispiel #1
0
    def test_article_ko_with_url_blank_nodata(self):
        str = "가나다라마바사 http://naver.com 안녕하세요1"
        cardview = CardView(str)
        result = cardview.get_data()

        self.assertEqual(result.ms_type, MediaSourceType.ARTICLE)

        print(result)
Beispiel #2
0
    def test_article_en_with_url_blank_data(self):
        str = "가나다라마바사 https://www.nytimes.com/2019/09/17/technology/personaltech/iphone-11-review.html 하세요1"
        cardview = CardView(str)
        result = cardview.get_data()

        self.assertEqual(result.ms_type, MediaSourceType.ARTICLE)

        print(result)
Beispiel #3
0
    def test_youtube_type_2(self):
        str = "가나다라 https://youtu.be/Jzz4AEIddzY 하하하하"
        cardview = CardView(str)
        result = cardview.get_data()

        self.assertEqual(result.ms_type, MediaSourceType.YOUTUBE)

        print(result)
Beispiel #4
0
    def test_article_ko_with_url_blank_data(self):
        str = "가나다라마바사 https://news.naver.com/main/read.nhn?mode=LSD&mid=shm&sid1=104&oid=008&aid=0004279021 하세요1"
        cardview = CardView(str)
        result = cardview.get_data()

        self.assertEqual(result.ms_type, MediaSourceType.ARTICLE)

        print(result)
Beispiel #5
0
 def test_article_en_with_url_data(self):
     str = "가나다라마바사https://www.nytimes.com/2019/09/17/technology/personaltech/iphone-11-review.html하세요2"
     cardview = CardView(str)
     result = cardview.get_data(str)
     print(result)
Beispiel #6
0
 def test_article_en_with_url_nodata(self):
     str = "가나다라마바사https://www.nytimes.com안녕하세요2"
     cardview = CardView(str)
     result = cardview.get_data(str)
     print(result)
Beispiel #7
0
 def test_article_ko_with_url_data(self):
     str = "가나다라마바사https://news.naver.com/main/read.nhn?mode=LSD&mid=shm&sid1=104&oid=008&aid=0004279021하세요2"
     cardview = CardView(str)
     result = cardview.get_data(str)
     print(result)
Beispiel #8
0
 def test_article_ko_with_url_nodata(self):
     str = "가나다라마바사http://naver.com안녕하세요2"
     cardview = CardView(str)
     result = cardview.get_data(str)
     print(result)