(self)
| 8 | |
| 9 | class TestLongField(MongoDBTestCase): |
| 10 | def test_storage(self): |
| 11 | class Person(Document): |
| 12 | value = LongField() |
| 13 | |
| 14 | Person.drop_collection() |
| 15 | person = Person(value=5000) |
| 16 | person.save() |
| 17 | assert get_as_pymongo(person) == {"_id": person.id, "value": 5000} |
| 18 | |
| 19 | def test_construction_does_not_fail_with_invalid_value(self): |
| 20 | class Person(Document): |
nothing calls this directly
no test coverage detected