Example #1
0
 def test_all_client_encounters_total_yearly(self):
     aggregation = AllClientEncounters(self.yearly_report)
     key = make_key({'year': 2011})
     tools.assert_equals(aggregation.get_val(key), 3)
Example #2
0
 def test_all_client_encounters_total_monthly(self):
     aggregation = AllClientEncounters(self.monthly_report)
     key = make_key({'month': 11})
     tools.assert_equals(aggregation.get_val(key), 2)
Example #3
0
 def test_all_client_encounters(self):
     aggregation = AllClientEncounters(self.report)
     key = make_key({'month': 11, 'town': self.town1.pk})
     tools.assert_equals(aggregation.get_val(key), 3)
Example #4
0
 def test_all_client_encounters(self):
     aggregation = AllClientEncounters(self.report)
     key = make_key({'month': 11, 'town': self.town1.pk})
     tools.assert_equals(aggregation.get_val(key), 3)
Example #5
0
 def test_all_client_encounters_total_yearly(self):
     aggregation = AllClientEncounters(self.yearly_report)
     key = make_key({'year': 2011})
     tools.assert_equals(aggregation.get_val(key), 3)
Example #6
0
 def test_all_client_encounters_total_monthly(self):
     aggregation = AllClientEncounters(self.monthly_report)
     key = make_key({'month': 11})
     tools.assert_equals(aggregation.get_val(key), 2)