def test_decrements_total_count_and_removes_mails_id_from_mails(self): tag = Tag('one_more') tag.mails = set([12]) tag.decrement(12) self.assertNotIn(12, tag.mails) self.assertEquals(0, tag.total)
def test_decrement_does_nothing_if_mail_has_not_the_tag(self): tag = Tag('tag') tag.decrement(2000) self.assertEquals(0, tag.total)