def test_num_total_cots(self): data = {'name': 'cv_dset'} data.update(ot.data.cv_dset) d = models.Dataset(data=data, data_is_from_form=False) assert d.num_total_cots() == 24
def test_num_compatible_cots(self, mock_get_grammars): data = {'name': 'cv_dset'} data.update(ot.data.cv_dset) d = models.Dataset(data=data, data_is_from_form=False) assert d.num_compatible_cots() == 6 assert mock_get_grammars.called_with(False)