Skip to content

Commit 73a2466

Browse files
committed
Update about_asserts.py
added assertIn test
1 parent 3685a39 commit 73a2466

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

python2/koans/about_asserts.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,13 @@ def test_that_sometimes_we_need_to_know_the_class_type(self):
7777
# Need an illustration? More reading can be found here:
7878
#
7979
# http://bit.ly/__class__
80+
81+
def test_assert_in(self):
82+
"""
83+
Sometimes we want to assert if a container contains a value
84+
"""
85+
# fill in the blank
86+
looking_for = ___
87+
inside = ['important', 'not']
88+
89+
self.assertIn(looking_for, inside)

0 commit comments

Comments
 (0)