Example #1
0
 def test2copy(self):
     """ Queue.copy(). """
     q = Queue(self.qdir, schema={'a': 'string'})
     q1 = q.copy()
     q.foo = 1
     try:
         q1.foo
     except AttributeError:
         pass
     else:
         self.fail('Not a copy, but reference.')
 def test2copy(self):
     """ Queue.copy(). """
     q = Queue(self.qdir, schema={'a': 'string'})
     q1 = q.copy()
     q.foo = 1
     try:
         q1.foo
     except AttributeError:
         pass
     else:
         self.fail('Not a copy, but reference.')