Beispiel #1
0
 def assert_only_user(u):
     assert Channel.get_channels_authorized_subscribers_as_json(
         [c]) == '{"%d": [%d]}' % (c.id, u.id)
Beispiel #2
0
 def assert_users(*users):
     for u in json.loads(
             Channel.get_channels_authorized_subscribers_as_json(
                 [c]))[str(c.id)]:
         assert u in [u.id for u in users]
Beispiel #3
0
 def assert_no_users():
     assert Channel.get_channels_authorized_subscribers_as_json(
         [c]) == '{"%d": []}' % c.id