コード例 #1
0
 def test_d_has_many_activities_returns_true_with_more_than_one_activity(
         self):
     member = Member('id', 'first_name', 'last_name', 'birth_date')
     member.add_activity('activity1', 'location1', 'start_date1', 'cost1')
     member.add_activity('activity2', 'location2', 'start_date2', 'cost2')
     returned = member.has_many_activities()
     assert returned == True
コード例 #2
0
 def test_c_has_many_activities_returns_false_with_one_activity(self):
     member = Member('id', 'first_name', 'last_name', 'birth_date')
     member.add_activity('activity1', 'location1', 'start_date1', 'cost1')
     returned = member.has_many_activities()
     assert returned == False
コード例 #3
0
 def test_b_has_many_activities_returns_false_with_zero_activity(self):
     member = Member('id', 'first_name', 'last_name', 'birth_date')
     returned = member.has_many_activities()
     assert returned == False