def test_reference(self):
        some = TestModel.objects.db_manager(REMOTE).create(name='Remote James', cash=77)
        a = TestModel.objects.create(name='James', cash=7)
        self.assertEquals(a.pk, some.pk)
        self.synchronize()
        self.assertRemoteCount(2, TestModel)
        b = TestModel.objects.db_manager(REMOTE).get(name='James')
        self.assertNotEquals(a.pk, b.pk)
        b.name = 'Bond'
        b.save()  # This change will be discarded
        self.wait()
        a.cash = 42
        a.save()
        self.synchronize()
        b = TestModel.objects.db_manager(REMOTE).get(pk=b.pk)
        self.assertEqual(a.name, b.name)
        self.assertEqual(a.cash, b.cash)
Read .dip file from Neuromag/xfit or MNE
dataset/ETHPy150Open zlorf/django-synchro/synchro/tests.py/SimpleSynchroTests.test_reference--crossover with--dataset/ETHPy150Open mne-tools/mne-python/mne/dipole.py/read_dipole