From 5c57ec1f433813c223215682b42e17b71b08b725 Mon Sep 17 00:00:00 2001 From: sagarjilladwar Date: Thu, 11 Feb 2021 19:37:30 +0530 Subject: [PATCH] first few tests of lesson 2 completed --- .../unit1_lesson_02_understanding_strings.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/unit1_lessons/unit1_lesson_02_understanding_strings.py b/unit1_lessons/unit1_lesson_02_understanding_strings.py index 6ca9c72..b52c6d8 100644 --- a/unit1_lessons/unit1_lesson_02_understanding_strings.py +++ b/unit1_lessons/unit1_lesson_02_understanding_strings.py @@ -13,20 +13,20 @@ """ def test_string_type(): - assert __ == type("Hello World").__name__ - assert __ == isinstance("Hello World", str) + assert 'str' == type("Hello World").__name__ + assert True == isinstance("Hello World", str) def test_single_quoted_strings_are_strings(): - assert __ == isinstance('Hello World', str) + assert True == isinstance('Hello World', str) def test_double_quoted_strings_are_strings(): - assert __ == isinstance("Hello World", str) + assert True == isinstance("Hello World", str) def test_triple_quoted_strings_are_strings(): - assert __ == isinstance("""Hello World""", str) + assert True == isinstance("""Hello World""", str) def test_triple_single_quoted_strings_are_strings(): - assert __ == isinstance('''Hello World''', str) + assert True == isinstance('''Hello World''', str) def test_raw_strings_are_strings(): # raw string literals are specified using the r before the first quote