Пример #1
0
    def test_get_single_msg_not_exist_msg(self):

        expected = ''

        actual = dbUtil.get_single_msg(self.conn, 'test_table', 1)

        eq_(actual, expected)
Пример #2
0
    def test_get_single_msg(self):

        expected = 'test_message'
        dbUtil.insert_message(self.conn, 'test_table', 'test_message')

        actual = dbUtil.get_single_msg(self.conn, 'test_table', 1)

        eq_(actual, expected)
Пример #3
0
    def test_get_single_msg_err(self):

        dbUtil.get_single_msg(self.conn, 'not_exist_table', 1)