reloop
V2EX  ›  V2EX

nose 里的 assert_equal() 方法是什么意思?

  •  
  •   reloop · Nov 15, 2013 · 5549 views
    This topic created in 4587 days ago, the information mentioned may be changed or developed.
    在 <笨办法学python> 看到的 , 找不到相关的内容解释
    摸索中... 希望能解释的详细一点 , 谢谢!!
    Supplement 1  ·  Nov 15, 2013
    意思好像就是左右两个东西在做比较 , 不相等就报错
    可能是比较两个字符串 , 甚至两个对象也可以

    然后我不明白 , 这整个测试流程是什么意思? 或者说为什么是这样在做测试? 他的意义是什么? 要得出什么结论?

    这个是 game.py


    这个是 ex47_tests.py
    https://gist.github.com/rtDNVdza/7482271
    Supplement 2  ·  Nov 15, 2013
    Supplement 3  ·  Nov 15, 2013
    不能编辑 , 不能删除 , 不能预览 orz.....
    5 replies    1970-01-01 08:00:00 +08:00
    rrfeng
        1
    rrfeng  
       Nov 15, 2013
    help(assert_equal())
    reloop
        2
    reloop  
    OP
       Nov 15, 2013
    @rrfeng 要在哪里打这句话?
    rrfeng
        3
    rrfeng  
       Nov 15, 2013
    @reloop
    先 import
    再 help
    rrfeng
        4
    rrfeng  
       Nov 15, 2013
    或者直接去看源码呀。。。
    reloop
        5
    reloop  
    OP
       Nov 16, 2013
    @rrfeng 恩 , 谢谢!!!
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2917 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 12:42 · PVG 20:42 · LAX 05:42 · JFK 08:42
    ♥ Do have faith in what you're doing.