17
17
#Test the sorting of attendances to be by displayname rather than name
18
18
sprint = self.factory.makeSprint()
19
19
bob = self.factory.makePerson(name='zbob', displayname='Bob')
20
21
dave = self.factory.makePerson(name='wdave', displayname='Dave')
22
23
bob, sprint.time_starts, sprint.time_ends, True)
25
ced, sprint.time_starts, sprint.time_ends, True)
24
27
dave, sprint.time_starts, sprint.time_ends, True)
26
29
people = [attendee.attendee.displayname for attendee in sprint.attendances]
27
30
self.assertEqual(attendances, people)