def test_browse(self): user = User('name', 'password', True, True, False) self.assertFalse(user.get_browse()) user.set_browse(True) self.assertTrue(user.get_browse()) user.set_browse(None) self.assertEqual(None, user.get_browse()) user = User(browse = True) self.assertTrue(user.get_browse())
def test_browse(self): user = User('name', 'password', True, True, False) self.assertFalse(user.get_browse()) user.set_browse(True) self.assertTrue(user.get_browse()) user.set_browse(None) self.assertEqual(None, user.get_browse()) user = User(browse=True) self.assertTrue(user.get_browse())