kwargs = {'date': self.default_ids[0], 'comment': 'foo'}
self.check_saving_and_caching(**kwargs)
- def test_Day_from_table_row(self) -> None:
- """Test .from_table_row() properly reads in class from DB"""
- self.check_from_table_row()
-
def test_Day_by_id(self) -> None:
"""Test .by_id()."""
self.check_by_id()
"""Test .remove() effects on DB and cache."""
self.check_remove()
- def test_Day_singularity(self) -> None:
- """Test pointers made for single object keep pointing to it."""
- self.check_singularity('day_comment', 'boo')
-
class TestsWithServer(TestCaseWithServer):
"""Tests against our HTTP server/handler (and database)."""