예제 #1
0
 def test_gathered_syringes_yearly(self):
     aggregation = GatheredSyringes(self.yearly_report)
     key = make_key({'year': 2011})
     tools.assert_equals(aggregation.get_val(key), 20)
예제 #2
0
 def test_gathered_syringes_monthly(self):
     aggregation = GatheredSyringes(self.monthly_report)
     key = make_key({'month': 11})
     tools.assert_equals(aggregation.get_val(key), 15)
예제 #3
0
 def test_gathered_syringes(self):
     aggregation = GatheredSyringes(self.report)
     key = make_key({'month': 11, 'town': self.town1.pk})
     tools.assert_equals(aggregation.get_val(key), 15)
예제 #4
0
 def test_gathered_syringes_yearly(self):
     aggregation = GatheredSyringes(self.yearly_report)
     key = make_key({'year': 2011})
     tools.assert_equals(aggregation.get_val(key), 20)
예제 #5
0
 def test_gathered_syringes_monthly(self):
     aggregation = GatheredSyringes(self.monthly_report)
     key = make_key({'month': 11})
     tools.assert_equals(aggregation.get_val(key), 15)
예제 #6
0
 def test_gathered_syringes(self):
     aggregation = GatheredSyringes(self.report)
     key = make_key({'month': 11, 'town': self.town1.pk})
     tools.assert_equals(aggregation.get_val(key), 15)