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())
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())