diff options
author | kvakanet <kvakanet@users.noreply.github.com> | 2017-02-15 21:22:35 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-15 21:22:35 +0300 |
commit | ae17c391586fcfdcd40232bec7937e090ddf4152 (patch) | |
tree | 838171bcb122ad7c2d64d3573cc2edd82ccf0dd8 | |
parent | 51f87c770dead1c87f592b6a6936013c1a29348d (diff) |
Исправлены тесты для правильной проверки авторов
-rw-r--r-- | habr/topic.py | 4 |
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']) |