Exemple #1
0
    def test_accessor(self):
        tag = Tag()

        tag.name = "xyz"
        eq_("xyz", tag.name)

        tag.color = "abc"
        eq_("abc", tag.color)
Exemple #2
0
    def test_accessor(self):
        tag = Tag()

        tag.name = "xyz"
        eq_("xyz", tag.name)

        tag.color = "abc"
        eq_("abc", tag.color)
Exemple #3
0
 def test_readonly_id(self):
     tag = Tag()
     tag.id = 0
Exemple #4
0
 def test_readonly_segment(self):
     tag = Tag()
     tag.segment = "xyz"
Exemple #5
0
 def test_writeonly_tag_or_untag(self):
     tag = Tag()
     tag.tag_or_untag
Exemple #6
0
 def test_writeonly_user_ids(self):
     tag = Tag()
     tag.user_ids
Exemple #7
0
 def test_writeonly_emails(self):
     tag = Tag()
     tag.emails
 def test_find(self):
     tag = Tag.find(name="Poweruser")
     eq_(None, tag.id)
Exemple #9
0
def test_write_user_ids():
    tag = Tag()
    tag.user_ids = ["abc123"]
    eq_(tag['user_ids'], ["abc123"])
Exemple #10
0
 def test_update(self):
     tag = Tag()
     tag.save()
     eq_(None, tag.id)
     eq_('green', tag.color)
Exemple #11
0
def test_accessor():
    tag = Tag()
    tag.name = "xyz"
    eq_(tag.name, "xyz")
Exemple #12
0
def test_segment():
    tag = Tag(segment="segment")
    tag.segment
Exemple #13
0
def test_readonly_segment():
    tag = Tag()
    tag.segment = "segment"
Exemple #14
0
def test_write_tag_or_untag():
    tag = Tag()
    tag.tag_or_untag = "tag"
    eq_(tag['tag_or_untag'], "tag")
Exemple #15
0
 def test_create(self):
     tag = Tag.create(name="Poweruser", tag_or_untag="tag")
     eq_(None, tag.id)
     eq_('green', tag.color)
     eq_(False, tag.segment)
     eq_(None, tag.tagged_user_count)
Exemple #16
0
 def test_find(self):
     tag = Tag.find(name="Poweruser")
     eq_(None, tag.id)
     eq_('green', tag.color)
Exemple #17
0
 def test_find(self):
     tag = Tag.find(name="Poweruser")
     eq_(None, tag.id)
     eq_('green', tag.color)
Exemple #18
0
 def test_update(self):
     tag = Tag()
     tag.save()
     eq_(None, tag.id)
Exemple #19
0
 def test_find_by_name(self):
     tag = Tag.find_by_name("Poweruser")
     eq_(None, tag.id)
     eq_('green', tag.color)
Exemple #20
0
 def test_find_by_name(self):
     tag = Tag.find_by_name("Poweruser")
     eq_(None, tag.id)
Exemple #21
0
 def test_write_emails(self):
     tag = Tag()
     tag.emails = ["*****@*****.**"]
     eq_(["*****@*****.**"], tag['emails'])
Exemple #22
0
 def test_write_emails(self):
     tag = Tag()
     tag.emails = ["*****@*****.**"]
     eq_(["*****@*****.**"], tag['emails'])
Exemple #23
0
 def test_write_user_ids(self):
     tag = Tag()
     tag.user_ids = ["abc123"]
     eq_(["abc123"], tag['user_ids'])
Exemple #24
0
 def test_write_user_ids(self):
     tag = Tag()
     tag.user_ids = ["abc123"]
     eq_(["abc123"], tag['user_ids'])
Exemple #25
0
 def test_write_tag_or_untag(self):
     tag = Tag()
     tag.tag_or_untag = "tag"
     eq_('tag', tag['tag_or_untag'])
Exemple #26
0
 def test_write_tag_or_untag(self):
     tag = Tag()
     tag.tag_or_untag = "tag"
     eq_('tag', tag['tag_or_untag'])
Exemple #27
0
 def test_readonly_segment(self):
     tag = Tag()
     tag.segment = "xyz"
Exemple #28
0
 def test_readonly_user_count(self):
     tag = Tag()
     tag.tagged_user_count = 0
Exemple #29
0
 def test_readonly_user_count(self):
     tag = Tag()
     tag.tagged_user_count = 0
Exemple #30
0
 def test_readonly_id(self):
     tag = Tag()
     tag.id = 0
Exemple #31
0
    def test_accessor(self):
        tag = Tag()

        tag.name = "xyz"
        eq_("xyz", tag.name)
Exemple #32
0
 def test_update(self):
     tag = Tag()
     tag.save()
     eq_(None, tag.id)
     eq_('green', tag.color)
Exemple #33
0
 def test_create(self):
     tag = Tag.create(name="Poweruser", tag_or_untag="tag")
     eq_(None, tag.id)
     eq_(False, tag.segment)
     eq_(None, tag.tagged_user_count)
Exemple #34
0
 def test_find_by_name(self):
     tag = Tag.find_by_name("Poweruser")
     eq_(None, tag.id)
     eq_('green', tag.color)
Exemple #35
0
def test_write_emails():
    tag = Tag()
    tag.emails = ["*****@*****.**"]
    eq_(tag['emails'], ["*****@*****.**"])