Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/icoz/habraparse.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkvakanet <kvakanet@users.noreply.github.com>2017-02-15 21:22:35 +0300
committerGitHub <noreply@github.com>2017-02-15 21:22:35 +0300
commitae17c391586fcfdcd40232bec7937e090ddf4152 (patch)
tree838171bcb122ad7c2d64d3573cc2edd82ccf0dd8
parent51f87c770dead1c87f592b6a6936013c1a29348d (diff)
Исправлены тесты для правильной проверки авторов
-rw-r--r--habr/topic.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/habr/topic.py b/habr/topic.py
index 97ff40e..e9c3631 100644
--- a/habr/topic.py
+++ b/habr/topic.py
@@ -189,7 +189,7 @@ class TestHabraTopic(TestCase):
t = HabraTopic(231957)
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(t.author())
- self.assertEqual(t.author(), 'Яндекс')
+ self.assertEqual(t.author(), '@yaklamm')
pp.pprint(t.title())
self.assertEqual(t.title(), 'Memory management в ядре Linux. Семинар в Яндексе')
pp.pprint(t.post['comments_count'])
@@ -234,7 +234,7 @@ class TestGTTopic(TestCase):
t = GeektimesTopic(243447)
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(t.author())
- self.assertEqual(t.author(), 'Soundpal')
+ self.assertEqual(t.author(), '@SOUNDPAL')
pp.pprint(t.title())
self.assertEqual(t.title(), 'На что влияет сопротивление наушников')
pp.pprint(t.post['comments_count'])