def test_write(self):
     user = User('name', 'password', True, True, False, False, False)
     self.assertFalse(user.get_write())
     user.set_write(True)
     self.assertTrue(user.get_write())
     user.set_write(None)
     self.assertEqual(None, user.get_write())
     user = User(write = True)
     self.assertTrue(user.get_write())
Exemple #2
0
 def test_write(self):
     user = User('name', 'password', True, True, False, False, False)
     self.assertFalse(user.get_write())
     user.set_write(True)
     self.assertTrue(user.get_write())
     user.set_write(None)
     self.assertEqual(None, user.get_write())
     user = User(write=True)
     self.assertTrue(user.get_write())