Beispiel #1
0
 def test_user_counts_for_each_tag(self):
     # Get User Tag Count Object
     Tag.tag_users('blue', [self.user.id])
     counts = Count.user_counts_for_each_tag
     Tag.untag_users('blue', [self.user.id])
     for count in counts:
         if 'blue' in count:
             eq_(count['blue'], 1)
 def test_user_counts_for_each_tag(self):
     # Get User Tag Count Object
     Tag.tag_users('blue', [self.user.id])
     counts = Count.user_counts_for_each_tag
     Tag.untag_users('blue', [self.user.id])
     for count in counts:
         if 'blue' in count:
             eq_(count['blue'], 1)
 def test_untag_users(self):
     # Untag users
     tag = Tag.untag_users("blue", [self.user.id])
     self.assertEqual(tag.name, "blue")
     user = User.find(email=self.user.email)
     self.assertEqual(0, len(user.tags))
Beispiel #4
0
 def test_untag_users(self):
     # Untag users
     tag = Tag.untag_users('blue', [self.user.id])
     self.assertEqual(tag.name, 'blue')
     user = User.find(email=self.user.email)
     self.assertEqual(0, len(user.tags))