def testSingleTask(self):
        
        local = TaskLocal()

        local.piet = 10
        
        self.assertEquals(10, local.piet)
        
        try:        
            x = local.klaas
            self.fail('expected attribute error')
        except __HOLE__:
            pass
        
        local.piet = 20
        
        self.assertEquals(True, hasattr(local, 'piet'))
        self.assertEquals(False, hasattr(local, 'klaas'))
        self.assertEquals(20, local.piet)
        
        del local.piet
        
        self.assertEquals(False, hasattr(local, 'piet'))
        
        try:        
            x = local.piet
            self.fail('expected attribute error')
        except AttributeError:
            pass
dataset/ETHPy150Open concurrence/concurrence/test/testlocal.py/TestTaskLocal.testSingleTask