def test_get_people_info(self):
     self.set_authors('Christopher Blizzard', 'blah')
     i = publish_edition.get_people_info(Person, self.authors_filename)
     self.assertDictEqual(i[1], {'is_unknown': True, 'name': 'blah',
                                 'tags': 'unknown'})
     self.assertEqual(i[0]['info'].name, 'Christopher Blizzard')
     self.assertFalse(i[0]['is_unknown'], False)
     self.assertEqual(i[0]['tags'], 'known')
Пример #2
0
def view_list(req):
    acct = get_account(req)
    people = pedition.get_people_info(Person, acct.authors_filename)
    return render_to_response('daily_edition/view_list.html',
                              dict(people=people),
                              context_instance=RequestContext(req))
Пример #3
0
def view_list(req):
    acct = get_account(req)
    people = pedition.get_people_info(Person, acct.authors_filename)
    return render_to_response('daily_edition/view_list.html',
                              dict(people=people),
                              context_instance=RequestContext(req))