def test_int2(): """ Test when int """ vstr = "d.dd == 23" assert When(wv=vstr, cid=test_items).do_when() is True
def test_int3(): """ Test when int """ vstr = "d.dd != 23" assert When(wv=vstr, cid=test_items).do_when() is False
def test_int(): """ Test when int """ vstr = "c == 22" assert When(wv=vstr, cid=test_items).do_when() is True
def test_str3(): """ Test when str """ vstr = 'b == "ssss"' assert When(wv=vstr, cid=test_items).do_when() is True
def test_str2(): """ Test when str """ vstr = "b == ssss" assert When(wv=vstr, cid=test_items).do_when() is True
def test_false(): """ Test when boolean """ vstr = "a == false" assert When(wv=vstr, cid=test_items).do_when() is False
def test_true(): """ Test when boolean """ vstr = "a == true" assert When(wv=vstr, cid=test_items).do_when() is True
def test_linux(): """Test linux """ assert When(wv="islinux", cid=test_items).do_when() is True