def test_only_favorite_shown(self): self.assertEquals( 1, len(get_tavern_table_list(self.unaffected, LIST_FAVORITE)))
def test_bookmark_shown_to_owner(self): self.assertTableInListing( self.bookmarked_public_table, get_tavern_table_list(self.owner, LIST_FAVORITE), )
def test_bookmark_hidden_from_banned(self): self.assertTableNotInListing( self.bookmarked_public_table, get_tavern_table_list(self.banned, LIST_FAVORITE), )
def test_both_tables_shown(self): self.assertEquals( 2, len(get_tavern_table_list(self.unaffected, LIST_ALL)))
def test_bookmark_shown_to_random_user(self): self.assertTableInListing( self.bookmarked_public_table, get_tavern_table_list(self.unaffected, LIST_FAVORITE), )
def test_shown_to_owner(self): self.assertTableInListing(self.public_table, get_tavern_table_list(self.owner, LIST_ALL))
def test_hidden_from_banned(self): self.assertTableNotInListing( self.public_table, get_tavern_table_list(self.banned, LIST_ALL))
def test_shown_to_random_user(self): self.assertTableInListing( self.public_table, get_tavern_table_list(self.unaffected, LIST_ALL))
def test_bookmark_hidden_from_random_user(self): self.assertTableNotInListing( self.bookmarked_private_table, get_tavern_table_list(self.unaffected, LIST_FAVORITE), )
def test_both_tables_shown_to_allowed(self): self.assertEquals(2, len(get_tavern_table_list(self.allowed, LIST_ALL)))
def test_shown_to_assist(self): self.assertTableInListing(self.private_table, get_tavern_table_list(self.assist, LIST_ALL))
def test_hidden_from_random_user(self): self.assertTableNotInListing( self.private_table, get_tavern_table_list(self.unaffected, LIST_ALL))