def _get_subjects(self, subjects):
    assert len([x for x in subjects if isinstance(x, SubjectData)]), len(subjects)
    sublists = [[x for x in subjects if (x.type == type)] for type in ['DDC', 'LCC', 'FAST']]
    assert ((len(sublists[0]), len(sublists[1])) == (1, 1))
    return sublists
def _get_subjects(self, subjects):
    assert len([x for x in subjects if isinstance(x, SubjectData)]), len(subjects)
    sublists = [[x for x in subjects if (x.type == type)] for type in ['DDC', 'LCC', 'FAST']]
    assert ((len(sublists[0]), len(sublists[1])) == (1, 1))
    return sublists