Ejemplo n.º 1
0
 def test_only_favorite_shown(self):
     self.assertEquals(
         1, len(get_tavern_table_list(self.unaffected, LIST_FAVORITE)))
Ejemplo n.º 2
0
 def test_bookmark_shown_to_owner(self):
     self.assertTableInListing(
         self.bookmarked_public_table,
         get_tavern_table_list(self.owner, LIST_FAVORITE),
     )
Ejemplo n.º 3
0
 def test_bookmark_hidden_from_banned(self):
     self.assertTableNotInListing(
         self.bookmarked_public_table,
         get_tavern_table_list(self.banned, LIST_FAVORITE),
     )
Ejemplo n.º 4
0
 def test_both_tables_shown(self):
     self.assertEquals(
         2, len(get_tavern_table_list(self.unaffected, LIST_ALL)))
Ejemplo n.º 5
0
 def test_bookmark_shown_to_random_user(self):
     self.assertTableInListing(
         self.bookmarked_public_table,
         get_tavern_table_list(self.unaffected, LIST_FAVORITE),
     )
Ejemplo n.º 6
0
 def test_shown_to_owner(self):
     self.assertTableInListing(self.public_table,
                               get_tavern_table_list(self.owner, LIST_ALL))
Ejemplo n.º 7
0
 def test_hidden_from_banned(self):
     self.assertTableNotInListing(
         self.public_table, get_tavern_table_list(self.banned, LIST_ALL))
Ejemplo n.º 8
0
 def test_shown_to_random_user(self):
     self.assertTableInListing(
         self.public_table, get_tavern_table_list(self.unaffected,
                                                  LIST_ALL))
Ejemplo n.º 9
0
 def test_bookmark_hidden_from_random_user(self):
     self.assertTableNotInListing(
         self.bookmarked_private_table,
         get_tavern_table_list(self.unaffected, LIST_FAVORITE),
     )
Ejemplo n.º 10
0
 def test_both_tables_shown_to_allowed(self):
     self.assertEquals(2, len(get_tavern_table_list(self.allowed,
                                                    LIST_ALL)))
Ejemplo n.º 11
0
 def test_shown_to_assist(self):
     self.assertTableInListing(self.private_table,
                               get_tavern_table_list(self.assist, LIST_ALL))
Ejemplo n.º 12
0
 def test_hidden_from_random_user(self):
     self.assertTableNotInListing(
         self.private_table, get_tavern_table_list(self.unaffected,
                                                   LIST_ALL))