def test_get_author_not_present(self): pull = {'user':{'login': '******'}} self.assertEquals(None, get_author(pull, self.players))
def test_get_author(self): pull = {'user':{'login': '******'}} self.assertEquals(self.players[0], get_author(pull, self.players))