示例#1
0
def test_not_a_list():
    assert_bad_type("a_list_of_values", "list", "i'm not a list")
示例#2
0
def test_not_a_float():
    assert_bad_type('a_float', 'float', "i'm not a float")
示例#3
0
def test_not_a_number():
    assert_bad_type("a_number", "number", "i'm not a number")
示例#4
0
def test_not_a_float():
    assert_bad_type('a_float', 'float', "i'm not a float")
示例#5
0
def test_not_a_list():
    assert_bad_type('a_list_of_values', 'list', "i'm not a list")
示例#6
0
def test_not_a_binary():
    # 'u' literal prefix produces type `str` in Python 3
    assert_bad_type('a_binary', 'binary', u"i'm not a binary")
示例#7
0
def test_not_a_boolean():
    assert_bad_type('a_boolean', 'boolean', "i'm not a boolean")
示例#8
0
def test_not_a_integer():
    assert_bad_type('an_integer', 'integer', "i'm not an integer")
示例#9
0
def test_not_a_boolean():
    assert_bad_type('a_boolean', 'boolean', "i'm not a boolean")
示例#10
0
def test_not_a_string():
    assert_bad_type('a_string', 'string', 1)
示例#11
0
def test_not_a_binary():
    # 'u' literal prefix produces type `str` in Python 3
    assert_bad_type('a_binary', 'binary', u"i'm not a binary")
示例#12
0
def test_not_a_dict():
    assert_bad_type('a_dict', 'dict', "i'm not a dict")
示例#13
0
def test_not_a_list():
    assert_bad_type('a_list_of_values', 'list', "i'm not a list")
示例#14
0
def test_not_a_number():
    assert_bad_type('a_number', 'number', "i'm not a number")
示例#15
0
def test_not_a_dict():
    assert_bad_type("a_dict", "dict", "i'm not a dict")
示例#16
0
def test_not_a_string():
    assert_bad_type("a_string", "string", 1)
示例#17
0
def test_not_a_string():
    assert_bad_type('a_string', 'string', 1)
示例#18
0
def test_not_a_integer():
    assert_bad_type("an_integer", "integer", "i'm not an integer")
示例#19
0
def test_not_a_integer():
    assert_bad_type('an_integer', 'integer', "i'm not an integer")
示例#20
0
def test_not_a_boolean():
    assert_bad_type("a_boolean", "boolean", "i'm not a boolean")
示例#21
0
def test_not_a_datetime():
    assert_bad_type('a_datetime', 'datetime', "i'm not a datetime")
示例#22
0
def test_not_a_datetime():
    assert_bad_type("a_datetime", "datetime", "i'm not a datetime")
示例#23
0
def test_not_a_number():
    assert_bad_type('a_number', 'number', "i'm not a number")
示例#24
0
def test_not_a_float():
    assert_bad_type("a_float", "float", "i'm not a float")
示例#25
0
def test_not_a_dict():
    assert_bad_type('a_dict', 'dict', "i'm not a dict")
示例#26
0
def test_not_a_datetime():
    assert_bad_type('a_datetime', 'datetime', "i'm not a datetime")