Пример #1
0
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())
Пример #2
0
    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()
Пример #3
0
 def setUp(self):
     self.empty_summary = BuddySummary()
     self.summary = BuddySummary(size=5, ct=2, buddy_sn='sn', ts=5)
     pass