Example #1
0
    def test_normalized(self):
        """Test that the task increments the normalized click count as well."""
        old_clicks = _get_normalized_clicks(2)
        add_click(2)
        new_clicks = _get_normalized_clicks(2)

        eq_(old_clicks + 1, new_clicks)
Example #2
0
    def test_basic(self):
        """Test that the task increments the correct clickstats object."""
        old_clicks = _get_clicks(2)
        add_click(2)
        new_clicks = _get_clicks(2)

        eq_(old_clicks + 1, new_clicks)
Example #3
0
    def test_normalized(self):
        """Test that the task increments the normalized click count as well."""
        old_clicks = _get_normalized_clicks(2)
        add_click(2)
        new_clicks = _get_normalized_clicks(2)

        eq_(old_clicks + 1, new_clicks)
Example #4
0
    def test_basic(self):
        """Test that the task increments the correct clickstats object."""
        old_clicks = _get_clicks(2)
        add_click(2)
        new_clicks = _get_clicks(2)

        eq_(old_clicks + 1, new_clicks)
Example #5
0
 def _click(self):
     banner_instance = self.badge_instance.child()
     add_click(self.badge_instance.user.id, banner_instance.badge.id,
               banner_instance.image.id)