(self)
| 2893 | return canary |
| 2894 | |
| 2895 | def test_already_present(self): |
| 2896 | User = self.classes.User |
| 2897 | |
| 2898 | canary = self._fixture() |
| 2899 | |
| 2900 | sess = fixture_session() |
| 2901 | |
| 2902 | u1 = User(name="u1") |
| 2903 | sess.add(u1) |
| 2904 | sess.flush() |
| 2905 | |
| 2906 | sess.query(User).first() |
| 2907 | eq_(canary, []) |
| 2908 | |
| 2909 | def test_changes_reset(self): |
| 2910 | """test the contract of load/refresh such that history is reset. |