class TestBuddySummary(unittest.TestCase): def setUp(self): self.empty_summary = BuddySummary() self.summary = BuddySummary(size=5, ct=2, buddy_sn='sn', ts=5) pass def test_get_is_none(self): self.assertTrue(self.empty_summary.is_none()) self.assertFalse(self.summary.is_none())
def on_db_updated(self): new_util = lumos.util.Util(self.frame) conn = new_util.get_connection() user_id = new_util.get_user_id(new_util.get_current_sn()) self.frame.refresh_data(BuddySummary.get_all(conn, user_id)) new_util.close_connection()
def setUp(self): self.empty_summary = BuddySummary() self.summary = BuddySummary(size=5, ct=2, buddy_sn='sn', ts=5) pass