(self)
| 1837 | Number.objects.update(integer=F("integer").bitxor(48)) |
| 1838 | |
| 1839 | def test_right_hand_addition(self): |
| 1840 | # Right hand operators |
| 1841 | Number.objects.filter(pk=self.n.pk).update( |
| 1842 | integer=15 + F("integer"), float=42.7 + F("float") |
| 1843 | ) |
| 1844 | |
| 1845 | # RH Addition of floats and integers |
| 1846 | self.assertEqual(Number.objects.get(pk=self.n.pk).integer, 57) |
| 1847 | self.assertEqual( |
| 1848 | Number.objects.get(pk=self.n.pk).float, Approximate(58.200, places=3) |
| 1849 | ) |
| 1850 | |
| 1851 | def test_right_hand_subtraction(self): |
| 1852 | Number.objects.filter(pk=self.n.pk).update( |
nothing calls this directly
no test coverage detected