def test_inplace_mutators_join(self):
		from grease.component.field import FieldAccessor
		comp = TestComponent()
		entities1 = set([2,3,7,8])
		entities2 = set([1,2,3,8])
		comp1 = TestComponent()
		comp2 = TestComponent()
		for i in range(9):
			comp1[i] = TestData(foo=i)
			comp2[i] = TestData(bar=i/2 + 1)
		foo_accessor = FieldAccessor(TestField(comp1, 'foo'), entities1)
		bar_accessor = FieldAccessor(TestField(comp2, 'bar'), entities2)
		foo_accessor += bar_accessor
		for i in range(9):
			if i in entities1 & entities2:
				self.assertEqual(comp1[i].foo, i + i/2 + 1)
			else:
				self.assertEqual(comp1[i].foo, i)
			self.assertEqual(comp2[i].bar, 2/i + 1)
		foo_accessor -= bar_accessor
		for i in range(9):
			self.assertEqual(comp1[i].foo, i)
			self.assertEqual(comp2[i].bar, i/2 + 1)
dataset/ETHPy150Open caseman/grease/test/field_test.py/FieldAccessorTestCase.test_inplace_mutators_join/swapped operands of `/`