diff options
| author | Jay Oster | 2014-07-19 00:26:43 -0700 | 
|---|---|---|
| committer | Jay Oster | 2014-07-19 00:26:43 -0700 | 
| commit | 199171015615f973605f6ae06cb0494e70382a85 (patch) | |
| tree | 04fe9b4ab2586373185f7e3a2bf50b91dec65263 | |
| parent | 1b44750262291a6a1ad30a8fe05dab0dbfaf7296 (diff) | |
| download | pubnub-python-199171015615f973605f6ae06cb0494e70382a85.tar.bz2 | |
DataSync unit tests: Rename self.object to self.data
| -rw-r--r-- | tests/test_simple_datasync.py | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/tests/test_simple_datasync.py b/tests/test_simple_datasync.py index 4dceb5f..5bbf7c0 100644 --- a/tests/test_simple_datasync.py +++ b/tests/test_simple_datasync.py @@ -18,7 +18,7 @@ def async(request):      return threading.Event()  class TestSimpleDataSync(): -    object = {} +    data = {}      def asyncTest(fn):          """ @@ -40,7 +40,7 @@ class TestSimpleDataSync():          def callback(message, action_list):              print "DataSync callback:", message, action_list -            self.object = message +            self.data = message              async.set()          p.get_synced_object(object_id, callback) @@ -75,8 +75,8 @@ class TestSimpleDataSync():          })          self.wait(async) -        assert 'time' in self.object -        assert self.object['time'] == now +        assert 'time' in self.data +        assert self.data['time'] == now      @asyncTest      def test_merge(self, async): @@ -87,12 +87,12 @@ class TestSimpleDataSync():          })          self.wait(async) -        assert 'time' in self.object -        assert self.object['time'] == now +        assert 'time' in self.data +        assert self.data['time'] == now      @asyncTest      def test_delete(self, async):          p.delete(object_id)          self.wait(async) -        assert self.object == {} +        assert self.data == {} | 
