def test_prepare_xls_content_no_data(self): self.assertEqual(proposal_xls.prepare_xls_content([]), []) proposals_data = prepare_xls_content_for_comparison([]) self.assertEqual(proposals_data['data'], [])
def test_prepare_xls_content_with_data(self): proposals_data = proposal_xls.prepare_xls_content([self.proposal_1.learning_unit_year]) self.assertEqual(len(proposals_data), 1) self.assertEqual(proposals_data[0], self._get_xls_data())
def test_prepare_xls_content_no_data(self): self.assertEqual(proposal_xls.prepare_xls_content([]), [])