Exemplo n.º 1
0
 def test_delete(self):
     user = User('name', 'password', True, True, False, False)
     self.assertFalse(user.get_delete())
     user.set_delete(True)
     self.assertTrue(user.get_delete())
     user.set_delete(None)
     self.assertEqual(None, user.get_delete())
     user = User(delete = True)
     self.assertTrue(user.get_delete())
Exemplo n.º 2
0
 def test_delete(self):
     user = User('name', 'password', True, True, False, False)
     self.assertFalse(user.get_delete())
     user.set_delete(True)
     self.assertTrue(user.get_delete())
     user.set_delete(None)
     self.assertEqual(None, user.get_delete())
     user = User(delete=True)
     self.assertTrue(user.get_delete())