You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
445 B
23 lines
445 B
1 year ago
|
import unittest
|
||
|
|
||
|
from ozgursozluk.api import Eksi
|
||
|
|
||
|
|
||
|
eksi = Eksi()
|
||
|
topic = eksi.search_topic("linux")
|
||
|
|
||
|
|
||
|
class TestTopic(unittest.TestCase):
|
||
|
def test_id(self):
|
||
|
self.assertEqual(topic.id, "32084")
|
||
|
|
||
|
def test_title(self):
|
||
|
self.assertEqual(topic.title, "linux")
|
||
|
|
||
|
def test_permalink(self):
|
||
|
self.assertEqual(topic.permalink, "https://eksisozluk2023.com/linux--32084")
|
||
|
|
||
|
|
||
|
if __name__ == "__main__":
|
||
|
unittest.main()
|