'Utility function primarily used in authors page'

def test_split_by(self):

    flat_list = [1, 2, 3, 4, 5, 6, 7]
    expected_result = [[1, 2], [3, 4], [5, 6], [7, None]]
    self.assertEqual(split_by(flat_list, 2, None), expected_result)
