예제 #1
0
 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())
예제 #2
0
 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())