(self)
| 1871 | ) |
| 1872 | |
| 1873 | def test_right_hand_division(self): |
| 1874 | # RH Division of floats and integers |
| 1875 | Number.objects.filter(pk=self.n.pk).update( |
| 1876 | integer=640 / F("integer"), float=42.7 / F("float") |
| 1877 | ) |
| 1878 | |
| 1879 | self.assertEqual(Number.objects.get(pk=self.n.pk).integer, 15) |
| 1880 | self.assertEqual( |
| 1881 | Number.objects.get(pk=self.n.pk).float, Approximate(2.755, places=3) |
| 1882 | ) |
| 1883 | |
| 1884 | def test_right_hand_modulo(self): |
| 1885 | # RH Modulo arithmetic on integers |
nothing calls this directly
no test coverage detected