def test_select_with_num(self):
    x = Response(text='ひとつめ', score=1.2)
    y = Response(text='ふたつめ', score=3.2)
    z = Response(text='みっつめ', score=0.8)
    selector = ResponseSelector()
    self.assertEqual(selector.select([x, y, z], num=2), [y, x])
def test_select_with_num(self):
    x = Response(text='ひとつめ', score=1.2)
    y = Response(text='ふたつめ', score=3.2)
    z = Response(text='みっつめ', score=0.8)
    selector = ResponseSelector()
    self.assertEqual(selector.select([x, y, z], num=2), [y, x])