windows_test.py 文件源码

python
阅读 17 收藏 0 点赞 0 评论 0

项目:logviewer 作者: romuloceccon 项目源码 文件源码
def test_should_return_current_value(self):
        self._parent_window.getmaxyx.return_value = (9, 30)
        dt = datetime.datetime(2016, 6, 28, 0, 20, 46)

        win = Datetime(self._manager, 'Date', dt)
        win.handle_key(curses.KEY_DOWN)
        self.assertEqual(dt.replace(year=2015), win.value)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号