Beispiel #1
0
    def test_set_account_public(self):
        user = User()

        user.set_account_public("user_1", False)
        user.set_account_public("user_2", True)

        self.assertFalse(user.is_account_public("user_1"))
        self.assertTrue(user.is_account_public("user_2"))
Beispiel #2
0
    def test_is_account_public(self):
        user = User()

        self.assertTrue(user.is_account_public("user_1"))
        self.assertFalse(user.is_account_public("user_2"))