From 64f900268d8ccf7957f405ca93a97afb4785af22 Mon Sep 17 00:00:00 2001 From: Chad Gibson Date: Tue, 31 Jan 2017 17:03:50 -0500 Subject: [PATCH 1/3] Completed lesson 1 --- python3/koans/about_asserts.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/python3/koans/about_asserts.py b/python3/koans/about_asserts.py index 1bffa66ef..7d8f7d663 100644 --- a/python3/koans/about_asserts.py +++ b/python3/koans/about_asserts.py @@ -14,25 +14,25 @@ def test_assert_truth(self): # # http://bit.ly/about_asserts - self.assertTrue(False) # This should be True + self.assertTrue(True) # This should be True def test_assert_with_message(self): """ Enlightenment may be more easily achieved with appropriate messages. """ - self.assertTrue(False, "This should be True -- Please fix this") + self.assertTrue(True, "This should be True -- Please fix this") def test_fill_in_values(self): """ Sometimes we will ask you to fill in the values """ - self.assertEqual(__, 1 + 1) + self.assertEqual(2, 1 + 1) def test_assert_equality(self): """ To understand reality, we must compare our expectations against reality. """ - expected_value = __ + expected_value = 2 actual_value = 1 + 1 self.assertTrue(expected_value == actual_value) @@ -40,7 +40,7 @@ def test_a_better_way_of_asserting_equality(self): """ Some ways of asserting equality are better than others. """ - expected_value = __ + expected_value = 2 actual_value = 1 + 1 self.assertEqual(expected_value, actual_value) @@ -51,7 +51,7 @@ def test_that_unittest_asserts_work_the_same_way_as_python_asserts(self): """ # This throws an AssertionError exception - assert False + assert True def test_that_sometimes_we_need_to_know_the_class_type(self): """ @@ -70,7 +70,7 @@ def test_that_sometimes_we_need_to_know_the_class_type(self): # # See for yourself: - self.assertEqual(__, "navel".__class__) # It's str, not + self.assertEqual(str, "navel".__class__) # It's str, not # Need an illustration? More reading can be found here: # From 53ec66ccbdbc23bd316cf60002359b6b3e9f053c Mon Sep 17 00:00:00 2001 From: Chad Gibson Date: Tue, 31 Jan 2017 17:05:49 -0500 Subject: [PATCH 2/3] Added gitignore file --- .gitignore | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.gitignore b/.gitignore index 27b56e02d..9f11b755a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1 @@ -*.pyc -*.swp -.DS_Store -answers -.hg +.idea/ From 66c10c0a54259144a5c658d0c94daf3b14a4fdd0 Mon Sep 17 00:00:00 2001 From: Chad Gibson Date: Tue, 31 Jan 2017 17:08:34 -0500 Subject: [PATCH 3/3] Added line to gitignore --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index 9f11b755a..ee40bb363 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ .idea/ +*.pyc \ No newline at end of file