Beispiel #1
0
 def test_prepare_xls_content_with_data(self):
     attributions = xls_build_attribution.prepare_xls_content(
         [self.learning_unit_yr_1])
     self.assertEqual(len(attributions),
                      len(self.learning_unit_yr_1.attribution_charge_news))
     an_attribution = self.learning_unit_yr_1.attribution_charge_news.get(
         self.attribution_1.attribution.id)
     self.assertEqual(
         attributions[0],
         self.get_xls_data(an_attribution, self.learning_unit_yr_1))
Beispiel #2
0
 def test_prepare_xls_content_with_data(self):
     attributions = xls_build_attribution.prepare_xls_content([self.learning_unit_yr_1])
     self.assertEqual(len(attributions), len(self.learning_unit_yr_1.attribution_charge_news))
     an_attribution = self.learning_unit_yr_1.attribution_charge_news.get(self.attribution_1.attribution.id)
     self.assertEqual(attributions[0], self.get_xls_data(an_attribution, self.learning_unit_yr_1))
Beispiel #3
0
 def test_prepare_xls_content_no_data(self):
     self.assertEqual(xls_build_attribution.prepare_xls_content([]), [])
Beispiel #4
0
 def test_prepare_xls_content_no_data(self):
     self.assertEqual(xls_build_attribution.prepare_xls_content([]), [])