Пример #1
0
def test_bot_3():
    print("test_bot_3() <=== create a simple bot command and generate hash for command3")
    c3 = Bot(command3)
    c3.generate_hash()
    assert_equal(c3.command, "daaaaaaaaaaaaaaaaaa")
    assert_equal(c3.data, "dl")
    assert_equal(c3.hash, "22cf35f16189ca")    
Пример #2
0
def test_bot_2():
    print("test_bot_2() <=== create a simple bot command and generate hash for command2")
    c2 = Bot(command2)
    c2.generate_hash()
    assert_equal(c2.command, "xxxxxxxx")
    assert_equal(c2.data, "yyyyyyyyy")
    assert_equal(c2.hash, "5b92ee76ecdc285")  
Пример #3
0
def test_bot_1():
    print("test_bot_1() <=== create a simple bot command and generate hash for command1")
    c1 = Bot(command1)
    c1.generate_hash()
    assert_equal(c1.command, "color")
    assert_equal(c1.data, "red")
    assert_equal(c1.hash, "5a2421317676")
Пример #4
0
def test_bot_3():
    print(
        "test_bot_3() <=== create a simple bot command and generate hash for command3"
    )
    c3 = Bot(command3)
    c3.generate_hash()
    assert_equal(c3.command, "daaaaaaaaaaaaaaaaaa")
    assert_equal(c3.data, "dl")
    assert_equal(c3.hash, "22cf35f16189ca")
Пример #5
0
def test_bot_2():
    print(
        "test_bot_2() <=== create a simple bot command and generate hash for command2"
    )
    c2 = Bot(command2)
    c2.generate_hash()
    assert_equal(c2.command, "xxxxxxxx")
    assert_equal(c2.data, "yyyyyyyyy")
    assert_equal(c2.hash, "5b92ee76ecdc285")
Пример #6
0
def test_bot_1():
    print(
        "test_bot_1() <=== create a simple bot command and generate hash for command1"
    )
    c1 = Bot(command1)
    c1.generate_hash()
    assert_equal(c1.command, "color")
    assert_equal(c1.data, "red")
    assert_equal(c1.hash, "5a2421317676")