generated from mwc/lab_weather
	friend_functions.py
This commit is contained in:
		@@ -10,11 +10,11 @@ from unittest import TestCase, main
 | 
			
		||||
from people import friends, family
 | 
			
		||||
from friend_functions import (
 | 
			
		||||
    count_people, 
 | 
			
		||||
    get_email, 
 | 
			
		||||
    count_favorite_colors, 
 | 
			
		||||
    people_who_like_color, 
 | 
			
		||||
    count_people_who_like_color,
 | 
			
		||||
    get_color_dict,
 | 
			
		||||
   # get_email, 
 | 
			
		||||
   # count_favorite_colors, 
 | 
			
		||||
   # people_who_like_color, 
 | 
			
		||||
   # count_people_who_like_color,
 | 
			
		||||
   # get_color_dict,
 | 
			
		||||
)
 | 
			
		||||
 | 
			
		||||
class TestCountPeople(TestCase):
 | 
			
		||||
@@ -22,7 +22,7 @@ class TestCountPeople(TestCase):
 | 
			
		||||
        self.assertEqual(count_people(family), 5)
 | 
			
		||||
        self.assertEqual(count_people(friends), 10)
 | 
			
		||||
 | 
			
		||||
class TestGetEmail(TestCase):
 | 
			
		||||
"""class TestGetEmail(TestCase):
 | 
			
		||||
    def test_returns_email_when_person_found(self):
 | 
			
		||||
        self.assertEqual(get_email(family, "Perry Calderon"), "mus.donec@outlook.org")
 | 
			
		||||
        self.assertEqual(get_email(friends, "Joy Tate"), "risus.a.ultricies@hotmail.org")
 | 
			
		||||
@@ -86,5 +86,5 @@ class TestGetColorDict(TestCase):
 | 
			
		||||
        }
 | 
			
		||||
        self.assertEqual(get_color_dict(family), familyExpected)
 | 
			
		||||
        self.assertEqual(get_color_dict(friends), friendsExpected)
 | 
			
		||||
 | 
			
		||||
"""
 | 
			
		||||
main()
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user