(self)
| 1010 | eq_(f1.data, {1, 5}) |
| 1011 | |
| 1012 | def test_remove(self): |
| 1013 | sess = fixture_session() |
| 1014 | |
| 1015 | f1 = Foo(data={1, 2, 3}) |
| 1016 | sess.add(f1) |
| 1017 | sess.commit() |
| 1018 | |
| 1019 | f1.data.remove(2) |
| 1020 | sess.commit() |
| 1021 | |
| 1022 | eq_(f1.data, {1, 3}) |
| 1023 | |
| 1024 | def test_discard(self): |
| 1025 | sess = fixture_session() |